Updates tests with new texts
This commit is contained in:
@@ -22,15 +22,15 @@ feature 'Verify email' do
|
||||
click_button "Send code"
|
||||
end
|
||||
|
||||
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
||||
expect(page).to have_content 'We have sent a confirmation email to your account: rock@example.com'
|
||||
|
||||
sent_token = /.*email_verification_token=(.*)".*/.match(ActionMailer::Base.deliveries.last.body.to_s)[1]
|
||||
visit email_path(email_verification_token: sent_token)
|
||||
|
||||
expect(page).to have_content "You are now a verified user"
|
||||
expect(page).to have_content "You are a verified user"
|
||||
|
||||
expect(page).to_not have_link "Verify my account"
|
||||
expect(page).to have_content "Verified account"
|
||||
expect(page).to have_content "Account verified"
|
||||
end
|
||||
|
||||
scenario "Errors on token verification" do
|
||||
@@ -39,7 +39,7 @@ feature 'Verify email' do
|
||||
login_as(user)
|
||||
visit email_path(email_verification_token: "1234")
|
||||
|
||||
expect(page).to have_content "Incorrect verification code"
|
||||
expect(page).to have_content "Verification code incorrect"
|
||||
end
|
||||
|
||||
scenario "Errors on sending confirmation email" do
|
||||
@@ -60,6 +60,6 @@ feature 'Verify email' do
|
||||
verified_user.destroy
|
||||
click_button "Send code"
|
||||
|
||||
expect(page).to have_content "There was a problem sending you an email to your account"
|
||||
expect(page).to have_content "There was a problem with sending an email to your account"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user