jamesshore / quixote

CSS unit and integration testing
Other
848 stars 45 forks source link

Web Font race condition #42

Open jamesshore opened 7 years ago

jamesshore commented 7 years ago

When testing CSS that has web fonts, Quixote sometimes loads the web font and then runs the test, and sometimes runs the test and then loads the web font.

We need to either (a) wait until web fonts are loaded when creating the Quixote frame, or (b) provide a way for tests to wait until the web font has been loaded.

jamesshore commented 7 years ago

See https://github.com/jamesshore/quixote/issues/41#issuecomment-293677710