From a76b64b80be5fba726ecf34581998d54e92960ee Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Sun, 16 Jul 2017 11:51:43 +0100 Subject: [PATCH] Spec for missing password confirmation --- spec/features/consumer/authentication_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/features/consumer/authentication_spec.rb b/spec/features/consumer/authentication_spec.rb index 12f067beed..f6f2426bd5 100644 --- a/spec/features/consumer/authentication_spec.rb +++ b/spec/features/consumer/authentication_spec.rb @@ -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"