Add a new screenshot for the logs view.
This commit is contained in:
parent
e9658f6dd5
commit
e8cb4382c7
1 changed files with 11 additions and 2 deletions
|
@ -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')
|
||||
});
|
||||
|
|
Reference in a new issue