From 891bf02beefb04b32821af908d85d3f26ed410b1 Mon Sep 17 00:00:00 2001 From: jonathan langlois Date: Thu, 8 Aug 2024 15:05:54 -0700 Subject: [PATCH] fix: selectors update selectors for switch widgets --- testing/cypress/pageObjects/requestPage.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/cypress/pageObjects/requestPage.ts b/testing/cypress/pageObjects/requestPage.ts index 6d6363b..74c0cd7 100644 --- a/testing/cypress/pageObjects/requestPage.ts +++ b/testing/cypress/pageObjects/requestPage.ts @@ -181,9 +181,9 @@ class RequestPage { setTeam(team: boolean) { if (team) { - cy.get(this.usesTeam).check('true'); + cy.get(this.usesTeam).check({ force: true }); } else { - cy.get(this.usesTeam).check('false'); + cy.get(this.usesTeam).uncheck({ force: true }); } } @@ -213,9 +213,9 @@ class RequestPage { setProjectLead(lead: boolean) { if (lead) { - cy.get(this.projectLead).check('true'); + cy.get(this.projectLead).check({ force: true }); } else { - cy.get(this.projectLead).check('false'); + cy.get(this.projectLead).uncheck({ force: true }); } }