Skip to content

Commit

Permalink
Fix a Cypress test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyGiraudel committed Jul 22, 2023
1 parent b825ce2 commit fd5326a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/state.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('State', () => {

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

Expand Down

0 comments on commit fd5326a

Please sign in to comment.