html reset

This commit is contained in:
Mark Moser
2017-03-20 10:57:50 -05:00
parent cb6f41fe29
commit 0727440a31
58 changed files with 397 additions and 529 deletions

View File

@ -64,7 +64,7 @@ module Admin
assert_redirected_to admin_question_path(question.to_i)
get admin_question_path question.to_i
assert_select 'p', 'foo bar baz'
assert_select 'div', 'foo bar baz'
end
test "should post attachment" do

View File

@ -40,7 +40,7 @@ module Admin
quiz = quizzes :fed
get admin_quiz_url quiz.to_i
assert_response :success
assert_select 'p', quiz.dept
assert_select 'div', quiz.dept
end
test "should get edit" do
@ -56,7 +56,7 @@ module Admin
assert_redirected_to admin_quiz_path(quiz.to_i)
get admin_quiz_path quiz.to_i
assert_select 'p', 'another'
assert_select 'div', 'another'
end
test "should fail to update quiz" do

View File

@ -44,7 +44,7 @@ module Admin
user = users(:recruiter)
get admin_user_url user.to_i
assert_response :success
assert_select 'p', user.name
assert_select 'div', user.name
end
test "should get edit" do
@ -62,7 +62,7 @@ module Admin
assert_redirected_to admin_user_path(user.to_i)
get admin_user_url user.to_i
assert_select 'p', 'new name'
assert_select 'div', 'new name'
end
test "should fail to update user" do

View File

@ -36,14 +36,14 @@ class CandidateControllerTest < ActionDispatch::IntegrationTest
auth_candidate candidates(:martha)
get welcome_path
assert_select '.prft-heading', "Welcome!"
assert_select 'h1', "Welcome!"
end
test "should display welcome back view" do
auth_candidate candidates(:roy)
get welcome_path
assert_select '.prft-heading', "Welcome Back"
assert_select 'h1', "Welcome Back"
end
test "should redirect to thankyou when completed" do

View File

@ -7,7 +7,7 @@ class QuestionAttachmentsTest < ActionDispatch::IntegrationTest
get question_path questions(:fed6)
assert_response :success
assert_select '.question-text', questions(:fed6).question
assert_select 'div', questions(:fed6).question
assert_select "img[src=\"#{questions(:fed6).attachment}\"]"
end

View File

@ -7,7 +7,7 @@ class QuestionFlowTest < ActionDispatch::IntegrationTest
get question_path
assert_response :success
assert_select '.question-text', questions(:fed1).question
assert_select 'div', questions(:fed1).question
end
test "should load the summary" do
@ -15,7 +15,7 @@ class QuestionFlowTest < ActionDispatch::IntegrationTest
get summary_path
assert_response :success
assert_select '.prft-heading', 'Almost done!'
assert_select 'h1', 'Almost done!'
end
test "can load specific question from summary" do
@ -24,7 +24,7 @@ class QuestionFlowTest < ActionDispatch::IntegrationTest
get question_path(question.id)
assert_response :success
assert_select '.question-text', question.question
assert_select 'div', question.question
end
test 'juan should be on summary with 80% complete' do
@ -32,6 +32,6 @@ class QuestionFlowTest < ActionDispatch::IntegrationTest
get summary_path
assert_response :success
assert_select '.progress span', '80%'
assert_select 'aside span', '80%'
end
end

View File

@ -8,7 +8,7 @@ class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
get question_path(question.id)
assert_response :success
assert_select '.question-text', question.question
assert_select 'div', question.question
end
test "should load seed data into live coder" do