concordnow / tinymce-ember

TinyMCE Ember addon
https://concordnow.github.io/tinymce-ember/
Other
1 stars 1 forks source link

Test helper to wait editor load #183

Closed robinvrd closed 2 years ago

robinvrd commented 2 years ago

This addon does not give any clean way to wait for tinymce loading in a test. In the tests of the addon we can see

await waitUntil(() => {
    return tinymce.activeEditor.getContent({ format: 'html' }) === checkValue;
});

which is not really clean.

https://api.emberjs.com/ember/3.28/functions/@ember%2Frunloop/begin might be a solution

ctjhoa commented 2 years ago

Fix released in 3.0.0