casper: Remove phantom_page_loaded code.

We removed the phantom_page_loaded logic in
b13265d135
(July 2017).

Now we just say that the page is loaded
to the console, which can possibly help
us debug glitches where the tests are
executing too early.
This commit is contained in:
Steve Howell 2020-03-31 12:10:20 +00:00 committed by showell
parent c0782f525a
commit 35d12c55d1
1 changed files with 1 additions and 4 deletions

View File

@ -65,10 +65,7 @@ exports.initialize_casper = function () {
}); });
casper.on('load.finished', function () { casper.on('load.finished', function () {
casper.evaluateOrDie(function () { casper.test.info('page load finished');
$(document).trigger($.Event('phantom_page_loaded'));
return true;
});
}); });
// This function should always be enclosed within a then() otherwise // This function should always be enclosed within a then() otherwise