diff --git a/test/integration/question_attachments_test.rb b/test/integration/question_attachments_test.rb index 103a094..4f25a90 100644 --- a/test/integration/question_attachments_test.rb +++ b/test/integration/question_attachments_test.rb @@ -22,15 +22,12 @@ class QuestionAttachmentsTest < ActionDispatch::IntegrationTest assert_select "img[src=\"#{questions(:fed6).attachment}\"]" end - # For some reason this test fails on review, but passes on summery /shrug - # explore later - # - # test "should show attachments on review" do - # user = users :reviewer - # post review_auth_url, params: { auth: { email: user.email, password: 'password' } } - # - # get review_path(candidates(:richard).test_hash) - # assert_response :success - # assert_select "img[src=\"#{questions(:fed6).attachment}\"]" - # end + test "should show attachments on review" do + user = users :reviewer + post review_auth_url, params: { auth: { email: user.email, password: 'password' } } + + get review_test_path(candidates(:richard).test_hash) + assert_response :success + assert_select "img[src=\"#{questions(:fed6).attachment}\"]" + end end diff --git a/test/integration/question_live_coder_test.rb b/test/integration/question_live_coder_test.rb index f0b343a..b61b19f 100644 --- a/test/integration/question_live_coder_test.rb +++ b/test/integration/question_live_coder_test.rb @@ -15,15 +15,4 @@ class QuestionLiveCoderTest < ActionDispatch::IntegrationTest # TODO: add in capybara and test form post # assert_redirected summary_path end - - test "can load a live coder TEXT question" do - setup_auth candidates(:dawn) - question = questions(:fed3) - - get question_path(question.id) - assert_response :success - assert_select '.question-text', question.question - # TODO: add in capybara and test form post - # assert_redirected summary_path - end end