Skip to content

Commit fd5326a

Browse files
committed
Fix a Cypress test failing
1 parent b825ce2 commit fd5326a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/e2e/state.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('State', () => {
2626

2727
it('should close when pressing ESC', () => {
2828
cy.get('[data-a11y-dialog-show="my-dialog"]').click()
29-
cy.get('body').trigger('keydown', { keyCode: 27, which: 27 })
29+
cy.get('body').type('{esc}', { force: true })
3030
cy.get('.dialog').then(shouldBeHidden)
3131
})
3232

0 commit comments

Comments
 (0)