From 4ed75cac82458281e32df513e1f050d917c14ab9 Mon Sep 17 00:00:00 2001 From: blockerabot Date: Tue, 3 Dec 2024 13:26:56 +0000 Subject: [PATCH 1/2] Sync shared packages from blockera-pro --- packages/dev-cypress/js/support/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dev-cypress/js/support/commands.js b/packages/dev-cypress/js/support/commands.js index 67ace645d..06f989469 100644 --- a/packages/dev-cypress/js/support/commands.js +++ b/packages/dev-cypress/js/support/commands.js @@ -278,9 +278,9 @@ export const registerCommands = () => { Cypress.Commands.add('customSelect', (item) => { cy.get('button[aria-haspopup="listbox"]').click({ force: true }); - cy.get('div[aria-selected="false"]') - .contains(item) - .click({ force: true }); + cy.get('ul').within(() => { + cy.contains(item).click({ force: true }); + }); }); Cypress.Commands.add('openAccordion', (accordionHeading) => From a13559bd0022cea37190bca28f758cf72771d078 Mon Sep 17 00:00:00 2001 From: Ali Aghdam Date: Thu, 5 Dec 2024 15:51:55 +0330 Subject: [PATCH 2/2] fix: cy selector --- packages/dev-cypress/js/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev-cypress/js/support/commands.js b/packages/dev-cypress/js/support/commands.js index 06f989469..9ecdc0ba5 100644 --- a/packages/dev-cypress/js/support/commands.js +++ b/packages/dev-cypress/js/support/commands.js @@ -278,7 +278,7 @@ export const registerCommands = () => { Cypress.Commands.add('customSelect', (item) => { cy.get('button[aria-haspopup="listbox"]').click({ force: true }); - cy.get('ul').within(() => { + cy.get('[role="listbox"]').within(() => { cy.contains(item).click({ force: true }); }); });