Skip to content

Commit

Permalink
Remove unnecessary issue-5650.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Aug 19, 2020
1 parent a6e8763 commit 1a94c40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
18 changes: 0 additions & 18 deletions packages/driver/cypress/fixtures/issue-5650.html

This file was deleted.

15 changes: 11 additions & 4 deletions packages/driver/cypress/integration/commands/actions/type_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,18 @@ describe('src/cy/commands/actions/type - #type', () => {
})

// https://github.com/cypress-io/cypress/issues/5650
it('should trigger KeyboardEvent, not Event, for event listeners', () => {
cy.visit('fixtures/issue-5650.html')
it('should trigger KeyboardEvent, not Event, for event listeners', (done) => {
cy.$$('input:first').on('keydown', (e) => {
if (e.originalEvent instanceof e.currentTarget.ownerDocument.defaultView.KeyboardEvent) {
done()

return
}

throw new Error('event was not instanceOf KeyboardEvent')
})

cy.get('#test-input').type('A')
cy.get('#result').contains('isKeyboardEvent: true')
cy.get('input:first').type('A')
})

describe('actionability', () => {
Expand Down

0 comments on commit 1a94c40

Please sign in to comment.