Use unique email address for test

Using the existing user email is only needed for the 'already registered' test.
:
This commit is contained in:
David Cook
2024-01-25 17:06:25 +11:00
parent 048619d660
commit 0638b9eea4

View File

@@ -102,7 +102,7 @@ describe "Authentication" do
end
it "Failing to sign up because password confirmation doesn't match or is blank" do
fill_in "Your email", with: user.email
fill_in "Your email", with: "test@foo.com"
fill_in "Choose a password", with: "ForgotToRetype"
click_signup_button
expect(page).to have_content "doesn't match"
@@ -112,7 +112,7 @@ describe "Authentication" do
InvisibleCaptcha.timestamp_enabled = true
InvisibleCaptcha.timestamp_threshold = 30
fill_in "Your email", with: user.email
fill_in "Your email", with: "test@foo.com"
fill_in "Choose a password", with: "test12345"
fill_in "Confirm password", with: "test12345"
click_signup_button