Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rjlynch committed Jul 9, 2024
1 parent 37eb1fb commit 781e72a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
)
and_i_complete_the_state_funded_secondary_school_step_with(option: "Yes")
and_i_complete_the_current_school_step(create(:school, phase: :secondary))
and_i_complete_the_headteacher_step
and_i_complete_the_contract_details_step_with(option: "No")
then_i_see_the_ineligible_page
end
Expand All @@ -81,6 +82,7 @@
)
and_i_complete_the_state_funded_secondary_school_step_with(option: "Yes")
and_i_complete_the_current_school_step(create(:school, phase: :secondary))
and_i_complete_the_headteacher_step
and_i_complete_the_contract_details_step_with(option: "Yes")
and_i_complete_the_contract_start_date_step_with(
date: Policies::InternationalRelocationPayments::PolicyEligibilityChecker
Expand All @@ -98,6 +100,7 @@
)
and_i_complete_the_state_funded_secondary_school_step_with(option: "Yes")
and_i_complete_the_current_school_step(create(:school, phase: :secondary))
and_i_complete_the_headteacher_step
and_i_complete_the_contract_details_step_with(option: "Yes")
and_i_complete_the_contract_start_date_step_with(
date: contract_start_date
Expand All @@ -115,6 +118,7 @@
)
and_i_complete_the_state_funded_secondary_school_step_with(option: "Yes")
and_i_complete_the_current_school_step(create(:school, phase: :secondary))
and_i_complete_the_headteacher_step
and_i_complete_the_contract_details_step_with(option: "Yes")
and_i_complete_the_contract_start_date_step_with(
date: contract_start_date
Expand All @@ -133,6 +137,7 @@
)
and_i_complete_the_state_funded_secondary_school_step_with(option: "Yes")
and_i_complete_the_current_school_step(create(:school, phase: :secondary))
and_i_complete_the_headteacher_step
and_i_complete_the_contract_details_step_with(option: "Yes")
and_i_complete_the_contract_start_date_step_with(
date: contract_start_date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
)
and_i_complete_the_state_funded_secondary_school_step_with(option: "Yes")
and_i_complete_the_current_school_step(school)
and_i_complete_the_headteacher_step
and_i_complete_the_contract_details_step_with(option: "Yes")
and_i_complete_the_contract_start_date_step_with(
date: contract_start_date
Expand All @@ -47,7 +48,6 @@
it "submits an application" do
and_i_complete_the_nationality_step_with(option: "Australian")
and_i_complete_the_passport_number_step_with(options: "123456789")
and_i_complete_the_headteacher_step
and_i_complete_the_personal_details_step
and_i_complete_the_postcode_step
and_i_complete_the_email_address_step
Expand All @@ -64,7 +64,6 @@
it "submits an application", js: true do
and_i_complete_the_nationality_step_with(option: "Australian")
and_i_complete_the_passport_number_step_with(options: "123456789")
and_i_complete_the_headteacher_step
and_i_complete_the_personal_details_step
and_i_complete_the_manual_address_step
and_i_complete_the_email_address_step
Expand All @@ -81,7 +80,6 @@
it "submits an application" do
and_i_complete_the_nationality_step_with(option: "Australian")
and_i_complete_the_passport_number_step_with(options: "123456789")
and_i_complete_the_headteacher_step
and_i_complete_the_personal_details_step
and_i_complete_the_manual_address_step
and_i_complete_the_email_address_step
Expand All @@ -98,7 +96,6 @@
it "submits an application" do
and_i_complete_the_nationality_step_with(option: "Australian")
and_i_complete_the_passport_number_step_with(options: "123456789")
and_i_complete_the_headteacher_step
and_i_complete_the_personal_details_step
and_i_complete_the_manual_address_step
and_i_complete_the_email_address_step
Expand Down Expand Up @@ -131,6 +128,10 @@ def then_the_check_your_answers_part_one_page_shows_my_answers
"Which school are you currently employed to teach at? #{school.name}"
)

expect(page).to have_text(
"Enter the name of the headteacher of the school where you are employed as a teacher Seymour Skinner"
)

expect(page).to have_text(
"Are you employed on a contract lasting at least one year? Yes"
)
Expand Down Expand Up @@ -179,10 +180,6 @@ def then_the_check_your_answers_part_page_shows_my_answers(school, mobile_number
"Enter your passport number, as it appears on your passport 123456789"
)

expect(page).to have_text(
"Enter the name of the headteacher of the school where you are employed as a teacher Seymour Skinner"
)

if mobile_number
expect(page).to have_text("Mobile number 01234567890")
else
Expand Down

0 comments on commit 781e72a

Please sign in to comment.