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 17, 2020
1 parent fee8e27 commit 893e521
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
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 893e521

Please sign in to comment.