|
112 | 112 | fill_in "New Email", with: "new_volunteer@example.com" |
113 | 113 | click_on "Update Email" |
114 | 114 |
|
| 115 | + expect(page).to have_content "Click the link in your new email to finalize the email transfer" |
| 116 | + |
115 | 117 | expect(ActionMailer::Base.deliveries.count).to eq(1) |
116 | 118 | expect(ActionMailer::Base.deliveries.first).to be_a(Mail::Message) |
117 | 119 | expect(ActionMailer::Base.deliveries.first.body.encoded) |
118 | | - .to have_text("You can confirm your account email through the link below:") |
| 120 | + .to have_text("Click here to confirm your email") |
119 | 121 | end |
120 | 122 |
|
121 | 123 | it "displays email errors messages when user is unable to set a email with incorrect current password" do |
|
264 | 266 | fill_in "New Email", with: "new_supervisor@example.com" |
265 | 267 | click_on "Update Email" |
266 | 268 |
|
| 269 | + expect(page).to have_content "Click the link in your new email to finalize the email transfer" |
| 270 | + |
267 | 271 | expect(ActionMailer::Base.deliveries.count).to eq(1) |
268 | 272 | expect(ActionMailer::Base.deliveries.first).to be_a(Mail::Message) |
269 | 273 | expect(ActionMailer::Base.deliveries.first.body.encoded) |
270 | | - .to match("You can confirm your account email through the link below:") |
| 274 | + .to match("Click here to confirm your email") |
271 | 275 | end |
272 | 276 |
|
273 | 277 | it "displays email errors messages when user is unable to set a email with incorrect current password" do |
|
428 | 432 | expect(ActionMailer::Base.deliveries.count).to eq(1) |
429 | 433 | expect(ActionMailer::Base.deliveries.first).to be_a(Mail::Message) |
430 | 434 | expect(ActionMailer::Base.deliveries.first.body.encoded) |
431 | | - .to match("You can confirm your account email through the link below:") |
| 435 | + .to match("Click here to confirm your email") |
432 | 436 | end |
433 | 437 |
|
434 | 438 | it "displays email errors messages when user is unable to set a email with incorrect current password" do |
|
0 commit comments