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"); }); });