From 6619c257122e162275b25d2cccf9e146ed1ce4f8 Mon Sep 17 00:00:00 2001 From: Alkesh Vaghmaria Date: Mon, 5 Aug 2024 09:24:02 +0100 Subject: [PATCH] add success banner --- .../provider/claims/check_your_email.html.erb | 13 +++++++++++++ .../early_years_payment/provider/happy_path_spec.rb | 3 +++ 2 files changed, 16 insertions(+) diff --git a/app/views/early_years_payment/provider/claims/check_your_email.html.erb b/app/views/early_years_payment/provider/claims/check_your_email.html.erb index 0e53e748a4..33459e0754 100644 --- a/app/views/early_years_payment/provider/claims/check_your_email.html.erb +++ b/app/views/early_years_payment/provider/claims/check_your_email.html.erb @@ -1,7 +1,20 @@ <% content_for(:page_title, page_title(t("early_years_payment_provider.check_your_email_page.title"), journey: current_journey_routing_name)) %>
+
+
+

+ Success +

+
+
+

+ Email sent to <%= journey_session.answers.email_address %> +

+
+
+

Check your email

diff --git a/spec/features/early_years_payment/provider/happy_path_spec.rb b/spec/features/early_years_payment/provider/happy_path_spec.rb index f56870bbb0..2a29b49c72 100644 --- a/spec/features/early_years_payment/provider/happy_path_spec.rb +++ b/spec/features/early_years_payment/provider/happy_path_spec.rb @@ -17,6 +17,9 @@ click_on "Submit" expect(page.title).to have_text(I18n.t("early_years_payment_provider.check_your_email_page.title")) + within ".govuk-notification-banner--success" do + expect(page).to have_content("Email sent to johndoe@example.com") + end expect(page).to have_content("Check your email") expect(page).to have_content("We have sent an email to johndoe@example.com")