diff --git a/app/forms/journeys/further_education_payments/building_construction_courses_form.rb b/app/forms/journeys/further_education_payments/building_construction_courses_form.rb index 334701c3c9..7f8958e78f 100644 --- a/app/forms/journeys/further_education_payments/building_construction_courses_form.rb +++ b/app/forms/journeys/further_education_payments/building_construction_courses_form.rb @@ -25,7 +25,7 @@ def checkbox_options id: "esfa_buildingconstruction", name: t( "options.esfa_buildingconstruction", - link: govuk_link_to("building and construction", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=7") + link: govuk_link_to("building and construction", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=7", new_tab: true) ) ), OpenStruct.new( @@ -44,7 +44,7 @@ def checkbox_options id: "level2_3_apprenticeship", name: t( "options.level2_3_apprenticeship", - link: govuk_link_to("construction and the built environment occupational route", "https://occupational-maps.instituteforapprenticeships.org/maps/route/construction") + link: govuk_link_to("construction and the built environment occupational route", "https://occupational-maps.instituteforapprenticeships.org/maps/route/construction", new_tab: true) ) ), OpenStruct.new( diff --git a/app/forms/journeys/further_education_payments/computing_courses_form.rb b/app/forms/journeys/further_education_payments/computing_courses_form.rb index 96e394c0f6..a50a0ab313 100644 --- a/app/forms/journeys/further_education_payments/computing_courses_form.rb +++ b/app/forms/journeys/further_education_payments/computing_courses_form.rb @@ -25,14 +25,14 @@ def checkbox_options id: "esfa_digitalpractitioners", name: t( "options.esfa_digitalpractitioners", - link: govuk_link_to("digital technology for practitioners", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=23&PageSize=10&Sort=Status") + link: govuk_link_to("digital technology for practitioners", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=23&PageSize=10&Sort=Status", new_tab: true) ) ), OpenStruct.new( id: "esfa_digitalusers", name: t( "options.esfa_digitalusers", - link: govuk_link_to("digital technology for users", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=22&PageSize=10&Sort=Status") + link: govuk_link_to("digital technology for users", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=22&PageSize=10&Sort=Status", new_tab: true) ) ), OpenStruct.new( @@ -59,7 +59,7 @@ def checkbox_options id: "level2_3_apprenticeship", name: t( "options.level2_3_apprenticeship", - link: govuk_link_to("digital occupational route", "https://occupational-maps.instituteforapprenticeships.org/maps/route/digital") + link: govuk_link_to("digital occupational route", "https://occupational-maps.instituteforapprenticeships.org/maps/route/digital", new_tab: true) ) ), OpenStruct.new( diff --git a/app/forms/journeys/further_education_payments/early_years_courses_form.rb b/app/forms/journeys/further_education_payments/early_years_courses_form.rb index 08c96da7de..98a6bcf331 100644 --- a/app/forms/journeys/further_education_payments/early_years_courses_form.rb +++ b/app/forms/journeys/further_education_payments/early_years_courses_form.rb @@ -37,7 +37,7 @@ def checkbox_options id: "coursetoeyq", name: t( "options.coursetoeyq", - link: govuk_link_to("early years qualification", "https://www.gov.uk/government/publications/early-years-qualifications-achieved-in-england") + link: govuk_link_to("early years qualification", "https://www.gov.uk/government/publications/early-years-qualifications-achieved-in-england", new_tab: true) ) ), OpenStruct.new( diff --git a/app/forms/journeys/further_education_payments/engineering_manufacturing_courses_form.rb b/app/forms/journeys/further_education_payments/engineering_manufacturing_courses_form.rb index cb5b270bad..a14e8e8759 100644 --- a/app/forms/journeys/further_education_payments/engineering_manufacturing_courses_form.rb +++ b/app/forms/journeys/further_education_payments/engineering_manufacturing_courses_form.rb @@ -25,21 +25,21 @@ def checkbox_options id: "esfa_engineering", name: t( "options.esfa_engineering", - link: govuk_link_to("engineering", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=13&PageSize=10&Sort=Status") + link: govuk_link_to("engineering", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=13&PageSize=10&Sort=Status", new_tab: true) ) ), OpenStruct.new( id: "esfa_manufacturing", name: t( "options.esfa_manufacturing", - link: govuk_link_to("manufacturing technologies", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=26&PageSize=10&Sort=Status") + link: govuk_link_to("manufacturing technologies", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=26&PageSize=10&Sort=Status", new_tab: true) ) ), OpenStruct.new( id: "esfa_transportation", name: t( "options.esfa_transportation", - link: govuk_link_to("transportation operations and maintenance", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=47&PageSize=10&Sort=Status") + link: govuk_link_to("transportation operations and maintenance", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=47&PageSize=10&Sort=Status", new_tab: true) ) ), OpenStruct.new( @@ -58,7 +58,7 @@ def checkbox_options id: "level2_3_apprenticeship", name: t( "options.level2_3_apprenticeship", - link: govuk_link_to("engineering and manufacturing occupational route", "https://occupational-maps.instituteforapprenticeships.org/maps/route/engineering-manufacturing") + link: govuk_link_to("engineering and manufacturing occupational route", "https://occupational-maps.instituteforapprenticeships.org/maps/route/engineering-manufacturing", new_tab: true) ) ), OpenStruct.new( diff --git a/app/forms/journeys/further_education_payments/maths_courses_form.rb b/app/forms/journeys/further_education_payments/maths_courses_form.rb index f7e90979ac..b37505af57 100644 --- a/app/forms/journeys/further_education_payments/maths_courses_form.rb +++ b/app/forms/journeys/further_education_payments/maths_courses_form.rb @@ -25,14 +25,14 @@ def checkbox_options id: "esfa", name: t( "options.esfa", - link: govuk_link_to("mathematics and statistics", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=28&PageSize=10&Sort=Status") + link: govuk_link_to("mathematics and statistics", "https://www.qualifications.education.gov.uk/Search?Status=Approved&Level=0,1,2,3,4&Sub=28&PageSize=10&Sort=Status", new_tab: true) ) ), OpenStruct.new( id: "gcse_maths", name: t( "options.gcse_maths", - link: govuk_link_to("other maths qualifications", "https://submit-learner-data.service.gov.uk/find-a-learning-aim/LearningAimSearchResult?TeachingYear=2324&HasFilters=False&EFAFundingConditions=EFACONFUNDMATHS") + link: govuk_link_to("other maths qualifications", "https://submit-learner-data.service.gov.uk/find-a-learning-aim/LearningAimSearchResult?TeachingYear=2324&HasFilters=False&EFAFundingConditions=EFACONFUNDMATHS", new_tab: true) ) ), OpenStruct.new( diff --git a/spec/features/further_education_payments/happy_path_spec.rb b/spec/features/further_education_payments/happy_path_spec.rb index 60f865aef3..0eb243b898 100644 --- a/spec/features/further_education_payments/happy_path_spec.rb +++ b/spec/features/further_education_payments/happy_path_spec.rb @@ -66,7 +66,7 @@ click_button "Continue" expect(page).to have_content("Which maths courses do you teach?") - find("label", text: "ESFA-funded qualifications at level 3 and below in the mathematics and statistics sector subject area").click + check("claim-maths-courses-esfa-field") click_button "Continue" expect(page).to have_content("Which physics courses do you teach?")