From b16b4f4a465072195efdd81f4403dde217907070 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Mon, 8 Nov 2021 09:17:07 +0000 Subject: [PATCH] add a failing test for the check email page --- spec/features/user_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/features/user_spec.rb b/spec/features/user_spec.rb index e8926cf42..511fe6af2 100644 --- a/spec/features/user_spec.rb +++ b/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