Skip to content

Commit

Permalink
add test for new field
Browse files Browse the repository at this point in the history
  • Loading branch information
starswan committed Jan 9, 2025
1 parent 433b9b5 commit 982c5d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spec/support/jobseeker_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def fill_in_reference
def fill_in_gcses
fill_in "jobseekers_qualifications_secondary_common_form[qualification_results_attributes][0][subject]", with: "Maths"
fill_in "jobseekers_qualifications_secondary_common_form[qualification_results_attributes][0][grade]", with: "110%"
fill_in "jobseekers_qualifications_secondary_common_form[qualification_results_attributes][0][awarding_body]", with: "Cambridge Board"
find("#add_subject").click
fill_in "jobseekers_qualifications_secondary_common_form[qualification_results_attributes][1][subject]", with: "PE"
fill_in "jobseekers_qualifications_secondary_common_form[qualification_results_attributes][1][grade]", with: "90%"
fill_in "School, college, or other organisation", with: "Churchill School for Gifted Macaques"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
expect(current_path).to eq(jobseekers_job_application_build_path(job_application, :qualifications))
expect(page).to have_content("GCSEs")
expect(page).to have_content("Churchill School for Gifted Macaques")
expect(page).to have_content("Maths – 110%")
expect(page).to have_content("Maths – 110% (Cambridge Board)")
expect(page).to have_content("PE – 90%")
expect(page).to have_content("2020")
end
Expand Down

0 comments on commit 982c5d4

Please sign in to comment.