mirror of https://github.com/zulip/zulip.git
Fix for TravisCI + casper.js race condition.
This changes the markdown preview test to use the waitForSelectorTextChange method rather than waitWhileVisible because it was not being generated fast enough in some cases to show correctly with waitWhileVisible.
This commit is contained in:
parent
7d02a44bc6
commit
59743a8508
|
@ -171,7 +171,7 @@ casper.then(function () {
|
|||
});
|
||||
|
||||
casper.then(function () {
|
||||
casper.waitWhileVisible("#markdown_preview", function () {
|
||||
casper.waitForSelectorTextChange("#preview_content", function () {
|
||||
casper.test.assertEquals(casper.getHTML('#preview_content'), "<p><strong>Markdown Preview</strong> >> Test for markdown preview</p>", "Check markdown is previewed properly");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue