-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
topic: cy.type ⌨️type: unexpected behaviorUser expected result, but got anotherUser expected result, but got another
Description
Current behavior:
cy.type command does not fire beforeInput event.
The documentation https://docs.cypress.io/api/commands/type.html#Events says:
beforeinputis not fired even though it is in the spec because no browser has adopted it.
This statement is not true anymore and not firing the event makes it impossible to use Cypress for testing editor implemented with Slate.js.
Desired behavior:
cy.type does fire beforeInput event.
Test code to reproduce
https://github.com/nekolnyt/cypress-test-tiny-type-in-slate/blob/master/cypress/integration/spec.js
Versions
Cypress 4.4.0
OS: macOS Catalina 10.15.1
Browser: Chrome 81
Related issues
kilrain, mwood23, alexmonteirocastro, pranavbabu, DylanCoakley and 1 more
Metadata
Metadata
Assignees
Labels
topic: cy.type ⌨️type: unexpected behaviorUser expected result, but got anotherUser expected result, but got another