Merge pull request #5037 from consul/confirm_email_expectations

Add expectations in tests confirming account
This commit is contained in:
Javi Martín
2022-11-28 15:52:37 +01:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -129,6 +129,8 @@ describe "Multitenancy", :seed_tenants do
check "By registering you accept the terms and conditions of use" check "By registering you accept the terms and conditions of use"
click_button "Register" click_button "Register"
expect(page).to have_content "You have been sent a message containing a verification link"
confirm_email confirm_email
expect(page).to have_content "Your account has been confirmed." expect(page).to have_content "Your account has been confirmed."

View File

@@ -392,6 +392,9 @@ describe "Users" do
fill_in "Username", with: "manuela2" fill_in "Username", with: "manuela2"
click_button "Register" click_button "Register"
expect(page).to have_content "To continue, please click on the confirmation link that we have sent you via email"
confirm_email confirm_email
expect(page).to have_content "Your account has been confirmed" expect(page).to have_content "Your account has been confirmed"