|
|
@ -61,7 +61,7 @@ RSpec.describe "User Features" do |
|
|
|
context "when the user has forgotten their password" do |
|
|
|
context "when the user has forgotten their password" do |
|
|
|
it "is redirected to the reset password page when they click the reset password link" do |
|
|
|
it "is redirected to the reset password page when they click the reset password link" do |
|
|
|
visit("/lettings-logs") |
|
|
|
visit("/lettings-logs") |
|
|
|
click_link("reset your password") |
|
|
|
click_link("Forgot password") |
|
|
|
expect(page).to have_current_path("/account/password/new") |
|
|
|
expect(page).to have_current_path("/account/password/new") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -744,7 +744,7 @@ RSpec.describe "User Features" do |
|
|
|
|
|
|
|
|
|
|
|
it "is redirected to the reset password page when they click the reset password link" do |
|
|
|
it "is redirected to the reset password page when they click the reset password link" do |
|
|
|
visit("/account/sign-in") |
|
|
|
visit("/account/sign-in") |
|
|
|
click_link("reset your password") |
|
|
|
click_link("Forgot password") |
|
|
|
expect(page).to have_current_path("/account/password/new") |
|
|
|
expect(page).to have_current_path("/account/password/new") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|