fixed attachment test
This commit is contained in:
parent
86c36fd7fb
commit
225f402c0f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user