From 59743a85084fb027c9e9b55695fc97641356f191 Mon Sep 17 00:00:00 2001 From: brockwhittaker Date: Tue, 31 Jan 2017 17:37:56 -0800 Subject: [PATCH] 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. --- frontend_tests/casper_tests/04-compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend_tests/casper_tests/04-compose.js b/frontend_tests/casper_tests/04-compose.js index ea203eafad..a54d6838b6 100644 --- a/frontend_tests/casper_tests/04-compose.js +++ b/frontend_tests/casper_tests/04-compose.js @@ -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'), "

Markdown Preview >> Test for markdown preview

", "Check markdown is previewed properly"); }); });