From b5d4f32b91e71bd9d14bbf0ef76c97093ffe460d Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Wed, 10 Nov 2021 11:59:11 +0000 Subject: [PATCH] add failing test for user email display Co-authored-by: Daniel Baark --- 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 511fe6af2..64ba34f2f 100644 --- a/spec/features/user_spec.rb +++ b/spec/features/user_spec.rb @@ -29,5 +29,12 @@ RSpec.describe "User Features" do click_button("Send email") expect(page).to have_content("Check your email") end + + it " is shown their email on the password reset confirmation page" do + visit("/users/password/new") + fill_in("user_email", with: "test@example.com") + click_button("Send email") + expect(page).to have_content("test@example.com") + end end end