2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Dump the page's content as well on failure.

This commit is contained in:
Guo Xiang Tan 2017-01-17 18:40:46 +08:00
parent fc52624aac
commit 1e1e40c75f

View file

@ -46,6 +46,7 @@ page.waitFor = function(desc, fn, cb) {
if (diff > TIMEOUT) {
console.log("FAILED: " + desc + " - " + diff + "ms");
page.render('/tmp/failed.png');
console.log('Content:' + page.content);
cb(false);
} else {
setTimeout(check, 25);