Skip to content
Discussion options

You must be logged in to vote

.type() supports contenteditable, but you must target the element that actually has the contenteditable attribute (not a child node), and it must be focusable.

Common fix: cy.get(sel).click().type('text') Rich-text editors (Quill/Draft/ProseMirror) often manage their own selection. For those, click to place the cursor first, or dispatch input via the editor’s API.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jennifer-shehane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants