-
-
Notifications
You must be signed in to change notification settings - Fork 511
Updating email instructions #6649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| <p>Hello! <%= @email %>!</p> | ||
|
|
||
| <p>You can confirm your account email through the link below:</p> | ||
|
|
||
| <p>Click here to confirm your email.</p> | ||
| <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p> | ||
| <p>If you weren't expecting this email, please disregard.</p> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -112,10 +112,12 @@ | |
| fill_in "New Email", with: "new_volunteer@example.com" | ||
| click_on "Update Email" | ||
|
|
||
| expect(page).to have_content "Click the link in your new email to finalize the email transfer" | ||
|
|
||
| expect(ActionMailer::Base.deliveries.count).to eq(1) | ||
| expect(ActionMailer::Base.deliveries.first).to be_a(Mail::Message) | ||
| expect(ActionMailer::Base.deliveries.first.body.encoded) | ||
| .to have_text("You can confirm your account email through the link below:") | ||
| .to have_text("Click here to confirm your email") | ||
| end | ||
|
|
||
| it "displays email errors messages when user is unable to set a email with incorrect current password" do | ||
|
|
@@ -264,10 +266,12 @@ | |
| fill_in "New Email", with: "new_supervisor@example.com" | ||
| click_on "Update Email" | ||
|
|
||
| expect(page).to have_content "Click the link in your new email to finalize the email transfer" | ||
|
|
||
| expect(ActionMailer::Base.deliveries.count).to eq(1) | ||
| expect(ActionMailer::Base.deliveries.first).to be_a(Mail::Message) | ||
| expect(ActionMailer::Base.deliveries.first.body.encoded) | ||
| .to match("You can confirm your account email through the link below:") | ||
| .to match("Click here to confirm your email") | ||
| end | ||
|
|
||
| it "displays email errors messages when user is unable to set a email with incorrect current password" do | ||
|
|
@@ -428,7 +432,7 @@ | |
| expect(ActionMailer::Base.deliveries.count).to eq(1) | ||
| expect(ActionMailer::Base.deliveries.first).to be_a(Mail::Message) | ||
| expect(ActionMailer::Base.deliveries.first.body.encoded) | ||
| .to match("You can confirm your account email through the link below:") | ||
| .to match("Click here to confirm your email") | ||
|
Comment on lines
432
to
+435
|
||
| end | ||
|
|
||
| it "displays email errors messages when user is unable to set a email with incorrect current password" do | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to issue #6638, the email should have a confirmation link with the text "Click here to finish updating your email." followed by the disclaimer. The current implementation has separate text on line 1 and a link with different text ("Confirm my account") on line 2. Consider making the instruction itself the clickable link text, and update the wording to match the requirement: "Click here to finish updating your email."