displays welcome back when test has started
This commit is contained in:
1 parent
1a97bb16fa
commit
a3eab2b27a
4 files changed
+32
No files matched your search
@@ -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