Skip to content

Commit

Permalink
Remove force: true from cypress check calls
Browse files Browse the repository at this point in the history
This was added in after a govuk-frontend upgrade. This has now been sorted in 5.2.0 (alphagov/govuk-frontend#4768) so have reverted.
  • Loading branch information
jsrobertson committed Feb 26, 2024
1 parent c157935 commit b6f5c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/pages/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export default abstract class Page {
manageDetails = (): PageElement => cy.get('[data-qa=manageDetails]')

selectCheckbox(name: string): void {
cy.get(`.govuk-checkboxes__input[name="${name}"]`).check({ force: true })
cy.get(`.govuk-checkboxes__input[name="${name}"]`).check()
}

selectRadioButton(name: string, value: string): void {
cy.get(`.govuk-radios__input[name="${name}"][value="${value}"]`).check({ force: true })
cy.get(`.govuk-radios__input[name="${name}"][value="${value}"]`).check()
}

selectSelectItem(testId: string, value: string): void {
Expand Down

0 comments on commit b6f5c8c

Please sign in to comment.