Skip to content

Commit

Permalink
fix: cy selector
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaghdam committed Dec 5, 2024
1 parent 4ed75ca commit a13559b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev-cypress/js/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
});
Expand Down

0 comments on commit a13559b

Please sign in to comment.