Skip to content

Commit

Permalink
check for error inside erorr summary
Browse files Browse the repository at this point in the history
  • Loading branch information
starswan committed Dec 19, 2024
1 parent 77913b0 commit 6917c1e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
fill_in "Add a note", with: ""
click_on I18n.t("buttons.save")

expect(page).to have_content(I18n.t("activemodel.errors.models.publishers/job_application/notes_form.attributes.content.blank"))
within ".govuk-error-summary" do
expect(page).to have_content(I18n.t("activemodel.errors.models.publishers/job_application/notes_form.attributes.content.blank"))
end

fill_in "Add a note", with: note_content
click_on I18n.t("buttons.save")
Expand Down

0 comments on commit 6917c1e

Please sign in to comment.