Browse Source

add a failing test for the check email page

pull/81/head
MadeTech Dushan 3 years ago
parent
commit
b16b4f4a46
  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")
expect(page).to have_current_path("/users/password/new")
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

Loading…
Cancel
Save