facebookarchive/draft-js

Test to verify focus/scroll behavior

Open

#1.402 geöffnet am 22. Sept. 2017

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (22.554 Stars) (2.646 Forks)batch import
help wantedtest coverage

Beschreibung

We have twice now had an issue where a change in Chrome breaks the scroll/focus behavior of Draft. See issues #14 and now https://github.com/facebook/draft-js/issues/1381.

It might not be easy, but I'd really like to get this covered by a test, so that we can know if/when it breaks again. Ideally would like both a unit test for focusNode in fbjs and a test that only uses the public API of Draft.js and reproduces an example similar to the one given in https://github.com/facebook/draft-js/issues/1381 .

It's true that these test would only start failing when run in the browser that has the inconsistency, but still would make it faster to verify and fix this type of problem.

Contributor Guide