Skip to content

Commit

Permalink
add success banner
Browse files Browse the repository at this point in the history
  • Loading branch information
alkesh committed Aug 5, 2024
1 parent 43ae0d7 commit 6619c25
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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)) %>

<div class="govuk-grid-row">
<div class="govuk-notification-banner govuk-notification-banner--success" aria-labelledby="govuk-notification-banner-title" data-module="govuk-notification-banner">
<div class="govuk-notification-banner__header">
<h2 class="govuk-notification-banner__title" id="govuk-notification-banner-title">
Success
</h2>
</div>
<div class="govuk-notification-banner__content">
<h3 class="govuk-notification-banner__heading">
Email sent to <%= journey_session.answers.email_address %>
</h3>
</div>
</div>
<div class="govuk-grid-column-two-thirds">

<h1 class="govuk-heading-l">
Check your email
</h1>
Expand Down
3 changes: 3 additions & 0 deletions spec/features/early_years_payment/provider/happy_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]")
end
expect(page).to have_content("Check your email")
expect(page).to have_content("We have sent an email to [email protected]")

Expand Down

0 comments on commit 6619c25

Please sign in to comment.