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:
brockwhittaker 2017-01-31 17:37:56 -08:00 committed by Tim Abbott
parent 7d02a44bc6
commit 59743a8508
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ casper.then(function () {
}); });
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> &gt;&gt; Test for markdown preview</p>", "Check markdown is previewed properly"); casper.test.assertEquals(casper.getHTML('#preview_content'), "<p><strong>Markdown Preview</strong> &gt;&gt; Test for markdown preview</p>", "Check markdown is previewed properly");
}); });
}); });