Skip to content

Commit

Permalink
add FE ineligible state due to problematic actions
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jul 10, 2024
1 parent c501a0b commit 4ea275b
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def teaching_less_than_2_5_hours_per_week?
def teaching_less_than_2_5_hours_per_week_next_term?
teaching_hours_per_week_next_term == "less_than_2_5"
end

def subject_to_problematic_actions?
subject_to_formal_performance_action || subject_to_disciplinary_action
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def ineligibility_reason
:teaching_less_than_2_5
elsif answers.teaching_less_than_2_5_hours_per_week_next_term?
:teaching_less_than_2_5_next_term
elsif answers.subject_to_problematic_actions?
:subject_to_problematic_actions
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
You are not eligible
</h1>

<p class="govuk-body">
In order to claim an incentive payment, you must not currently be subject to any:
</p>

<%= govuk_list [
"formal performance measures as a result of continuous poor teaching standards",
"disciplinary action"
],
type: :bullet %>

<p class="govuk-body">
For more information, check the eligibility criteria for <%= govuk_link_to "levelling up premium payments for early career further education teachers", "https://www.gov.uk/guidance/levelling-up-premium-payments-for-fe-teachers", new_tab: true %>.
</p>

<p class="govuk-body">
The information entered is not stored. If you are unsure your information is correct, <%= govuk_link_to "start again", claim_path(current_journey_routing_name, "landing-page") %>.
</p>
</div>
</div>
127 changes: 126 additions & 1 deletion spec/features/further_education_payments/ineligible_paths_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
click_button "Continue"

expect(page).to have_content("On average, how many hours per week are you timetabled to teach at #{college.name} during the current term?")

choose("More than 12 hours per week")
click_button "Continue"

Expand All @@ -121,6 +120,132 @@
expect(page).to have_content("you must be in the first 5 years of")
end

scenario "when teacher is subject to performance measures" do
when_further_education_payments_journey_configuration_exists

visit landing_page_path(Journeys::FurtherEducationPayments::ROUTING_NAME)
expect(page).to have_link("Start now")
click_link "Start now"

expect(page).to have_content("Are you a member of staff with teaching responsibilities?")
choose "Yes"
click_button "Continue"

expect(page).to have_content("Which FE provider are you employed by?")
fill_in "Which FE provider are you employed by?", with: college.name
click_button "Continue"

expect(page).to have_content("Select the college you teach at")
choose college.name
click_button "Continue"

expect(page).to have_content("What type of contract do you have with #{college.name}?")
choose("Permanent contract")
click_button "Continue"

expect(page).to have_content("On average, how many hours per week are you timetabled to teach at #{college.name} during the current term?")
choose("More than 12 hours per week")
click_button "Continue"

expect(page).to have_content("Which academic year did you start teaching in further education (FE) in England?")
choose("September 2023 to August 2024")
click_button "Continue"

expect(page).to have_content("Which subject areas do you teach?")
check("Building and construction")
click_button "Continue"

expect(page).to have_content("FE building and construction courses goes here")
click_button "Continue"

expect(page).to have_content("FE teaching courses goes here")
click_button "Continue"

expect(page).to have_content("Are at least half of your timetabled teaching hours spent teaching 16 to 19-year-olds, including those up to age 25 with an Education, Health and Care Plan (EHCP)?")
choose "Yes"
click_button "Continue"

expect(page).to have_content("Do you have a teaching qualification?")
choose("Yes")
click_button "Continue"

expect(page).to have_content("Have any performance measures been started against you?")
within all(".govuk-fieldset")[0] do
choose("Yes")
end
expect(page).to have_content("Are you currently subject to disciplinary action?")
within all(".govuk-fieldset")[1] do
choose("No")
end
click_button "Continue"

expect(page).to have_content("You are not eligible")
expect(page).to have_content("you must not currently be subject to any")
end

scenario "when teacher is subject to disciplinary action" do
when_further_education_payments_journey_configuration_exists

visit landing_page_path(Journeys::FurtherEducationPayments::ROUTING_NAME)
expect(page).to have_link("Start now")
click_link "Start now"

expect(page).to have_content("Are you a member of staff with teaching responsibilities?")
choose "Yes"
click_button "Continue"

expect(page).to have_content("Which FE provider are you employed by?")
fill_in "Which FE provider are you employed by?", with: college.name
click_button "Continue"

expect(page).to have_content("Select the college you teach at")
choose college.name
click_button "Continue"

expect(page).to have_content("What type of contract do you have with #{college.name}?")
choose("Permanent contract")
click_button "Continue"

expect(page).to have_content("On average, how many hours per week are you timetabled to teach at #{college.name} during the current term?")
choose("More than 12 hours per week")
click_button "Continue"

expect(page).to have_content("Which academic year did you start teaching in further education (FE) in England?")
choose("September 2023 to August 2024")
click_button "Continue"

expect(page).to have_content("Which subject areas do you teach?")
check("Building and construction")
click_button "Continue"

expect(page).to have_content("FE building and construction courses goes here")
click_button "Continue"

expect(page).to have_content("FE teaching courses goes here")
click_button "Continue"

expect(page).to have_content("Are at least half of your timetabled teaching hours spent teaching 16 to 19-year-olds, including those up to age 25 with an Education, Health and Care Plan (EHCP)?")
choose "Yes"
click_button "Continue"

expect(page).to have_content("Do you have a teaching qualification?")
choose("Yes")
click_button "Continue"

expect(page).to have_content("Have any performance measures been started against you?")
within all(".govuk-fieldset")[0] do
choose("No")
end
expect(page).to have_content("Are you currently subject to disciplinary action?")
within all(".govuk-fieldset")[1] do
choose("Yes")
end
click_button "Continue"

expect(page).to have_content("You are not eligible")
expect(page).to have_content("you must not currently be subject to any")
end

scenario "when permanent contract and not enough hours" do
when_further_education_payments_journey_configuration_exists

Expand Down

0 comments on commit 4ea275b

Please sign in to comment.