Skip to content

Commit

Permalink
fix submenu selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank99 committed Jun 6, 2023
1 parent 5625f6d commit d69f216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/storybook/src/DropdownMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('DropdownMenu', () => {
});

if (testName === 'Submenu') {
cy.get('[role=option]').last().trigger('mouseenter');
cy.get('li[aria-expanded=false]').trigger('mouseenter');
}

cy.compareSnapshot(`${testName} (Open)`);
Expand Down

0 comments on commit d69f216

Please sign in to comment.