mirror of https://github.com/zulip/zulip.git
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:
parent
c0782f525a
commit
35d12c55d1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue