Browse Source

add a failing test for the check email page

pull/81/head
MadeTech Dushan 3 years ago
parent
commit
ad4c9a906c
  1. 7
      spec/features/user_spec.rb

7
spec/features/user_spec.rb

@ -22,5 +22,12 @@ RSpec.describe "User Features" do
click_link("reset your password") click_link("reset your password")
expect(page).to have_current_path("/users/password/new") expect(page).to have_current_path("/users/password/new")
end end
it " is redirected to check your email page after submitting an email on the reset password page" do
visit("/users/password/new")
fill_in("user_email", with: "test@example.com")
click_button("Send email")
expect(page).to have_content("Check your email")
end
end end
end end

Loading…
Cancel
Save