facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.56k stars 2.64k forks source link

WebDriver IO and Draft JS #1747

Open HelderSprinklr opened 6 years ago

HelderSprinklr commented 6 years ago

Do you want to request a feature or report a bug? Feature What is the current behavior? It does not apply the right value on html, when I use this code

const draft = browser.element('.public-DraftEditor-content') }
draft.setValue('Test')

wdio

What is the expected behavior? the value 'Test' appears on html.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in "draft-js": "^0.10.0", Version 65.0.3325.181 (Official Version) 64 bits, MAC OS Version 10.13.3 previous versions of Draft.js? No

thibaudcolas commented 6 years ago

Hey @HelderSprinklr, I doubt setValue is the right command when dealing with contenteditable HTML. In any case, you should probably have a look at #1460.

HelderSprinklr commented 6 years ago

@thibaudcolas, thank you! 👍