Skip to content

Commit

Permalink
course label links now open in a new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jul 5, 2024
1 parent b552afa commit cd6264f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?")
Expand Down

0 comments on commit cd6264f

Please sign in to comment.