New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cy.type does not fire beforeInput
event / does not work with slate.js
#7088
Comments
Hopefully the Cypress team will update their input commands to dispatch the beforeinput event, but until they do I’ve created a couple of simple custom commands which will trigger Slate’s input event listeners and make it respond ianstormtaylor/slate#3476 (comment) |
After some research, I learned that simple One more problem is the |
The code for this is done in cypress-io/cypress#8411, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
cy.type
command does not firebeforeInput
event.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.type
does firebeforeInput
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)
The text was updated successfully, but these errors were encountered: