diff --git a/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb b/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb index e2119be7c6..3ff06fdeda 100644 --- a/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb +++ b/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb @@ -7,6 +7,7 @@ class SlugSequence one-login-sign-in how-we-use-your-information personal-details + enter-home-address ].freeze def self.start_page_url diff --git a/app/views/early_years_payment/practitioner/claims/personal_details.html.erb b/app/views/early_years_payment/practitioner/claims/enter_home_address.html.erb similarity index 100% rename from app/views/early_years_payment/practitioner/claims/personal_details.html.erb rename to app/views/early_years_payment/practitioner/claims/enter_home_address.html.erb diff --git a/spec/features/early_years_payment/practitioner/happy_path_spec.rb b/spec/features/early_years_payment/practitioner/happy_path_spec.rb index c6c07025c6..fcb336aba7 100644 --- a/spec/features/early_years_payment/practitioner/happy_path_spec.rb +++ b/spec/features/early_years_payment/practitioner/happy_path_spec.rb @@ -16,5 +16,14 @@ expect(page.title).to have_text("How we’ll use the information you provide") expect(page).to have_content("How we’ll use the information you provide") click_on "Continue" + + expect(page).to have_content("Personal details") + fill_in "First name", with: "John" + fill_in "Last name", with: "Doe" + fill_in "Day", with: "28" + fill_in "Month", with: "2" + fill_in "Year", with: "1988" + fill_in "National Insurance number", with: "PX321499A" + click_on "Continue" end end