From 30aefa6485e04948d2982dfdb6c15d486a7cbe16 Mon Sep 17 00:00:00 2001 From: Sinn Date: Fri, 3 Jan 2025 14:48:26 -0800 Subject: [PATCH] attempt to fix cypress error --- .../core-web/cypress/e2e/createproject.cy.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/services/core-web/cypress/e2e/createproject.cy.ts b/services/core-web/cypress/e2e/createproject.cy.ts index 62885f647c..d6bb6366aa 100644 --- a/services/core-web/cypress/e2e/createproject.cy.ts +++ b/services/core-web/cypress/e2e/createproject.cy.ts @@ -106,18 +106,14 @@ describe("Major Projects", () => { cy.get(`[name="payment_contact.phone_no"]`).type("123-456-7890", { force: true }); cy.get(`[name="payment_contact.email"]`).type("test@test.com", { force: true }); cy.get(`[name="payment_contact.address[0].address_line_1"]`).type("123 Fake St", { force: true }); - cy.get(`[data-cy="payment_contact.address[0].address_type_code"]`) + cy.get(`[data-cy="payment_contact.address[0].address_type_code"]:visible`) .contains("Please select") - .click({ - force: true, - }); - cy.get('[title="Canada"]').click({ force: true }); - cy.get(`[data-cy="payment_contact.address[0].sub_division_code"]`) + .click(); + cy.get('[title="Canada"]:visible').click(); + cy.get(`[data-cy="payment_contact.address[0].sub_division_code"]:visible`) .contains("Please select") - .click({ - force: true, - }); - cy.get('[title="AB"]').click({ force: true }); + .click(); + cy.get('[title="AB"]:visible').click(); cy.get(`[name="payment_contact.address[0].post_code"]`).type("A0A0A0", { force: true }); cy.get(`[name="payment_contact.address[0].city"]`).type("Cityville", { force: true });