Commit 57d20642 authored by marc duez's avatar marc duez

nightmarejs: use default js selector to remove unnecessary wait() command

parent d318d0f0
Pipeline #219037 failed with stages
in 1 minute and 26 seconds
......@@ -9,9 +9,9 @@ var uri = 'file://' + curdir;
nightmare
.on('console', function(){ console.log(arguments[1]) })
.goto(uri+"/test_Qunit.html")
.wait(1000)
.wait(function() {
return $('.qunit-fail').length > 0 || $('.qunit-pass').length > 0;
return document.getElementsByClassName('.qunit-fail').length > 0 ||
document.getElementsByClassName('.qunit-pass').length > 0;
})
.evaluate(function () {
return tap_output;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment