Add a new screenshot for the logs view.

This commit is contained in:
yackob03 2013-12-02 22:37:00 -05:00
parent e9658f6dd5
commit e8cb4382c7

View file

@ -40,6 +40,9 @@ casper.on("remote.message", function(msg, trace) {
casper.on("page.error", function(msg, trace) {
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')
});