We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b825ce2 commit fd5326aCopy full SHA for fd5326a
cypress/e2e/state.cy.js
@@ -26,7 +26,7 @@ describe('State', () => {
26
27
it('should close when pressing ESC', () => {
28
cy.get('[data-a11y-dialog-show="my-dialog"]').click()
29
- cy.get('body').trigger('keydown', { keyCode: 27, which: 27 })
+ cy.get('body').type('{esc}', { force: true })
30
cy.get('.dialog').then(shouldBeHidden)
31
})
32
0 commit comments