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 }); }); });