mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
Dump the page's content as well on failure.
This commit is contained in:
@ -46,6 +46,7 @@ page.waitFor = function(desc, fn, cb) {
|
|||||||
if (diff > TIMEOUT) {
|
if (diff > TIMEOUT) {
|
||||||
console.log("FAILED: " + desc + " - " + diff + "ms");
|
console.log("FAILED: " + desc + " - " + diff + "ms");
|
||||||
page.render('/tmp/failed.png');
|
page.render('/tmp/failed.png');
|
||||||
|
console.log('Content:' + page.content);
|
||||||
cb(false);
|
cb(false);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(check, 25);
|
setTimeout(check, 25);
|
||||||
|
Reference in New Issue
Block a user