Skip to content

Commit

Permalink
Merge pull request #3233 from DFE-Digital/LUPEYALPHA-982-EY-practitio…
Browse files Browse the repository at this point in the history
…ner-how-we-use-your-information

[LUPEYALPHA-982] EY practitioner how-we-use-your-information page
  • Loading branch information
alkesh authored Sep 26, 2024
2 parents 3894160 + d02575a commit 36e7d73
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module Journeys
module EarlyYearsPayment
module Practitioner
class FindReferenceForm < Form
def save
true
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module Practitioner
class SlugSequence
SLUGS = %w[
find-reference
one-login-sign-in
how-we-use-your-information
personal-details
].freeze

def self.start_page_url
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= govuk_button_to "Continue", claim_path(current_journey_routing_name), method: :patch %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<% title = "How we’ll use the information you provide" %>
<% content_for(:page_title, page_title(title, journey: current_journey_routing_name)) %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">

<h1 class="govuk-heading-l">
<%= title %>
</h1>

<h2 class="govuk-heading-m">
How we process your claim
</h2>

<p class="govuk-body">
We’ll check the information you’ve given us with the early years provider where you currently work.
</p>

<h2 class="govuk-heading-m">
How we pay you
</h2>

<p class="govuk-body">
The Department for Education will make the payment directly to you.
</p>

<h2 class="govuk-heading-m">
Student loan deductions
</h2>

<p class="govuk-body">
If your payslip shows that you’re currently paying off a student loan, a deduction from your payment will go towards repaying it.
</p>

<p class="govuk-body">
If your payment takes you over the amount you must earn to start paying back a student loan, a deduction may go towards repaying it.
Read more about <%= govuk_link_to("when you start paying back a student loan", "https://www.gov.uk/repaying-your-student-loan/when-you-start-repaying") %>
and <%= govuk_link_to("what you’ll pay", "https://www.gov.uk/repaying-your-student-loan/what-you-pay") %>.
</p>

<h2 class="govuk-heading-m">
Income Tax
</h2>

<p class="govuk-body">
The Department for Education will pay Income Tax and National Insurance on your incentive payment if your total annual income is less than £50,270.
</p>

<%= govuk_button_to "Continue", claim_path(current_journey_routing_name), method: :patch %>

</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%= form_with model: @form, url: claim_path(current_journey_routing_name), method: :patch, builder: GOVUKDesignSystemFormBuilder::FormBuilder, html: { novalidate: false } do |f| %>
<%= f.govuk_submit %>
<% end %>
Empty file.
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ en:
early_years_payment_practitioner:
journey_name: Claim an early years financial incentive payment - practitioner
feedback_email: [email protected]
claim_description: for early years financial incentive payment
activerecord:
errors:
models:
Expand Down
4 changes: 4 additions & 0 deletions spec/factories/journey_configurations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
routing_name { Journeys::EarlyYearsPayment::Provider::Authenticated::ROUTING_NAME }
end

trait :early_years_payment_practitioner do
routing_name { Journeys::EarlyYearsPayment::Practitioner::ROUTING_NAME }
end

trait :closed do
open_for_submissions { false }
end
Expand Down
20 changes: 20 additions & 0 deletions spec/features/early_years_payment/practitioner/happy_path_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require "rails_helper"

RSpec.feature "Early years payment practitioner" do
scenario "Happy path" do
when_early_years_payment_practitioner_journey_configuration_exists

visit landing_page_path(Journeys::EarlyYearsPayment::Practitioner::ROUTING_NAME)

# find-reference page stuff
visit claim_path(Journeys::EarlyYearsPayment::Practitioner::ROUTING_NAME, :claim) # temporary step until landing page implemented
click_on "Continue"

# one login stuff
click_on "Continue"

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"
end
end
4 changes: 4 additions & 0 deletions spec/support/steps/journey_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ def when_early_years_payment_provider_start_journey_configuration_exists
def when_early_years_payment_provider_authenticated_journey_configuration_exists
create(:journey_configuration, :early_years_payment_provider_authenticated)
end

def when_early_years_payment_practitioner_journey_configuration_exists
create(:journey_configuration, :early_years_payment_practitioner)
end

0 comments on commit 36e7d73

Please sign in to comment.