displays welcome back when test has started
This commit is contained in:
@ -44,6 +44,20 @@ class CandidateControllerTest < ActionDispatch::IntegrationTest
|
||||
refute flash[:error].present?, "Should not be displaying an error message"
|
||||
end
|
||||
|
||||
test "should display welcome view" do
|
||||
setup_auth candidates(:martha)
|
||||
get welcome_path
|
||||
|
||||
assert_select '.prft-heading', "Welcome!"
|
||||
end
|
||||
|
||||
test "should display welcome back view" do
|
||||
setup_auth candidates(:roy)
|
||||
get welcome_path
|
||||
|
||||
assert_select '.prft-heading', "Welcome Back"
|
||||
end
|
||||
|
||||
test "should redirect to thankyou when completed" do
|
||||
setup_auth candidates(:richard)
|
||||
|
||||
|
Reference in New Issue
Block a user