Skip to content

Commit

Permalink
Undo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jan 30, 2024
1 parent aba9424 commit b463e1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/system/annotations_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class AnnotationsTest < ApplicationSystemTestCase
end

def new_submission
sub = create :correct_submission, result: Rails.root.join('db/results/javascript-result.json').read, code: @code_lines.join("\n"), course: create(:course)
sub.exercise.judge.renderer = FeedbackTableRenderer
sub = create :correct_submission, result: Rails.root.join('db/results/python-result.json').read, code: @code_lines.join("\n"), course: create(:course)
sub.exercise.judge.renderer = PythiaRenderer
sub.exercise.judge.save
sub
end
Expand All @@ -32,7 +32,7 @@ def new_submission
assert_text 'Correct'
end
within '.card-tab .nav.nav-tabs' do
assert_text 'Echo'
assert_text 'Correctheid'
assert_text 'Code'
end
within '.submission-summary .description' do
Expand Down Expand Up @@ -178,7 +178,7 @@ def new_submission
visit(submission_path(id: @instance.id))
click_on 'Code'

click_on 'Echo'
click_on 'Correctheid'
click_on 'Code'

annot = create :annotation, submission: @instance, user: @zeus
Expand All @@ -190,7 +190,7 @@ def new_submission
assert_text annot.annotation_text
end

click_on 'Echo'
click_on 'Correctheid'
click_on 'Code'

assert_selector '.annotation', count: 1
Expand Down
4 changes: 2 additions & 2 deletions test/system/questions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class QuestionsTest < ApplicationSystemTestCase
include Capybara::Minitest::Assertions

def new_submission
sub = create :correct_submission, result: Rails.root.join('db/results/javascript-result.json').read, code: @code_lines.join("\n"), course: create(:course)
sub.exercise.judge.renderer = FeedbackTableRenderer
sub = create :correct_submission, result: Rails.root.join('db/results/python-result.json').read, code: @code_lines.join("\n"), course: create(:course)
sub.exercise.judge.renderer = PythiaRenderer
sub.exercise.judge.save
sub
end
Expand Down

0 comments on commit b463e1c

Please sign in to comment.