From a13559bd0022cea37190bca28f758cf72771d078 Mon Sep 17 00:00:00 2001 From: Ali Aghdam Date: Thu, 5 Dec 2024 15:51:55 +0330 Subject: [PATCH] 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 }); }); });