diff --git a/test/snapshot/cypress/support/suite.ts b/test/snapshot/cypress/support/suite.ts index e420b0f5..7bfae630 100644 --- a/test/snapshot/cypress/support/suite.ts +++ b/test/snapshot/cypress/support/suite.ts @@ -70,7 +70,10 @@ const assertions = ( .get(selectors.organisation) .should("have.value", address.organisation_name); const town = address.post_town.toLowerCase(); - cy.get(selectors.post_town).should("have.value", town.charAt(0).toUpperCase() + town.slice(1)); + cy.get(selectors.post_town).should( + "have.value", + town.charAt(0).toUpperCase() + town.slice(1) + ); cy.get(selectors.country).should("have.value", "JE"); cy.get(selectors.postcode).should("have.value", address.postcode); }; @@ -82,7 +85,7 @@ export const autocompleteSuite = (suite: Suite) => { it("Autocomplete", () => { cy.get(scope).within((scope) => { - cy.get(selectors.country).select("GB"); + cy.get(selectors.country).select("GB", { force: true }); cy.wait(2000); cy.get(selectors.line_1) .clear({ @@ -105,7 +108,7 @@ export const postcodeLookupSuite = (suite: Suite) => { it("Postcode Lookup", () => { cy.get(scope).within((scope) => { - cy.get(selectors.country).select("GB"); + cy.get(selectors.country).select("GB", { force: true }); cy.wait(1000); cy.get(".idpc-input") .clear({ @@ -116,7 +119,7 @@ export const postcodeLookupSuite = (suite: Suite) => { }); cy.get(".idpc-button").click({ force: true }); cy.wait(3000); - cy.get(".idpc-select").select("0"); + cy.get(".idpc-select").select("0", { force: true }); assertions(scope, selectors, address); }); });