diff --git a/screenshots/screenshots.js b/screenshots/screenshots.js index 623cbe0fe..a58666c57 100644 --- a/screenshots/screenshots.js +++ b/screenshots/screenshots.js @@ -35,11 +35,14 @@ var orgrepo = 'orgrepo' var outputDir = "screenshots/"; casper.on("remote.message", function(msg, trace) { - this.echo("Message: " + msg, "DEBUG"); + this.echo("Message: " + msg, "DEBUG"); }); casper.on("page.error", function(msg, trace) { - this.echo("Page error: " + msg, "ERROR"); + this.echo("Page error: " + msg, "ERROR"); + for (var i = 0; i < trace.length; i++) { + this.echo(JSON.stringify(trace[i]), "ERROR"); + } }); casper.start(rootUrl + 'signin', function () { @@ -124,6 +127,12 @@ casper.then(function() { this.capture(outputDir + 'org-admin.png'); }); +casper.thenClick('a[data-target="#logs"]', function() { + this.waitForSelector('svg > g', function() { + this.capture(outputDir + 'org-logs.png'); + }); +}); + casper.thenOpen(rootUrl + 'repository/' + org + '/' + orgrepo + '/admin', function() { this.waitForText('outsideorg') });