Spec for missing password confirmation

This commit is contained in:
Matt-Yorkley
2017-07-16 11:51:43 +01:00
committed by Maikel Linke
parent 483db2bc29
commit a76b64b80b

View File

@@ -67,6 +67,13 @@ feature "Authentication", js: true, retry: 3 do
expect(page).to have_content "There's already an account for this email."
end
scenario "Failing to sign up because password confirmation doesn't match or is blank" do
fill_in "Email", with: user.email
fill_in "Choose a password", with: "ForgotToRetype"
click_signup_button
expect(page).to have_content "doesn't match"
end
scenario "Signing up successfully" do
fill_in "Email", with: "test@foo.com"
fill_in "Choose a password", with: "test12345"