Skip to content

Commit d020c4f

Browse files
committed
test: fix flaky cypress tests
1 parent 93a9847 commit d020c4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cypress/component/Menu.cy.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,10 @@ describe('<Menu/>', () => {
285285

286286
cy.focused().realPress('Space')
287287

288-
cy.contains('Flyout Menu Item').should('exist').and('be.visible')
289-
290288
cy.contains('Flyout Menu Item')
291289
.closest('[role="menuitem"]')
292-
.should('have.focus')
290+
.should('be.visible')
291+
.and('have.focus')
293292
})
294293

295294
it(`should show and focus flyout menu on enter keyDown`, () => {

0 commit comments

Comments
 (0)