Current behavior:
cy.type command does not fire beforeInput event.
The documentation https://docs.cypress.io/api/commands/type.html#Events says:
beforeinput is 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
ianstormtaylor/slate#3476
#311 (comment)
Current behavior:
cy.typecommand does not firebeforeInputevent.The documentation https://docs.cypress.io/api/commands/type.html#Events says:
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.typedoes firebeforeInputevent.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
ianstormtaylor/slate#3476
#311 (comment)