Skip to content

Commit f4590df

Browse files
committed
Fix the tests
1 parent 290eb14 commit f4590df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cypress/e2e/state.cy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ describe('State', { testIsolation: false }, () => {
4343
cy.get('[popovertarget]').click()
4444
cy.get('[popover]').should('be.visible')
4545
cy.realPress('Escape')
46+
// It’s unclear why this becomes necessary when using the `CloseWatcher`,but
47+
// without this artificial delay, the dialog gets closed at the same time,
48+
// and only during Cypress tests
49+
cy.wait(100)
4650
cy.get('[popover]').should('not.be.visible')
4751
cy.get('.dialog').then(shouldBeVisible)
4852
cy.realPress('Escape')

0 commit comments

Comments
 (0)