From af438a21c358d93bdeb4c06031dd5766725d5ef0 Mon Sep 17 00:00:00 2001 From: John Robertson Date: Mon, 26 Feb 2024 11:33:24 +0000 Subject: [PATCH] Remove `force: true` from cypress `check` calls This was added in after a govuk-frontend upgrade. This has now been sorted in 5.2.0 (https://github.com/alphagov/govuk-frontend/pull/4768) so have reverted. --- integration_tests/pages/page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/pages/page.ts b/integration_tests/pages/page.ts index 0e654b997..2f19759bb 100644 --- a/integration_tests/pages/page.ts +++ b/integration_tests/pages/page.ts @@ -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 {