Browse Source

sucessful flash test added

pull/111/head
Matthew Phelan 4 years ago
parent
commit
66cf576d1f
  1. 7
      spec/features/user_spec.rb

7
spec/features/user_spec.rb

@ -49,5 +49,12 @@ RSpec.describe "User Features" do
fill_in("user_email", with: user.email)
expect { click_button("Send email") }.to change { ActionMailer::Base.deliveries.count }.by(1)
end
it " is shown the password reset confirmation page and successful flash message shows" do
visit("/users/password/new")
fill_in("user_email", with: user.email)
click_button("Send email")
expect(page).to have_css '.govuk-notification-banner.govuk-notification-banner--success'
end
end
end

Loading…
Cancel
Save