You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, beforeinput is not the only problem.
I learned that simple cy.get('[data-slate-editor="true"]').type('test') is impossible. Because Cypress forcefully inserts text to content editable div. We need a new option like noAutomaticContentEditableUpdate. But the problem is that the name is too long.
One more problem is the inputType field of InputEvent. We need to decide what is the good default value.