Update screenshots.js to remove olark. Regenerate screenshots.

This commit is contained in:
yackob03 2013-10-22 16:36:26 -04:00
parent 76df2a3625
commit e18eefdd43
3 changed files with 18 additions and 0 deletions

View file

@ -10,6 +10,18 @@ var casper = require('casper').create({
logLevel: "debug"
});
var disableOlark = function() {
casper.then(function() {
this.waitForText('Contact us!', function() {
this.evaluate(function() {
console.log(olark);
window.olark.configure('box.start_hidden', true);
window.olark('api.box.hide');
});
});
});
};
var options = casper.cli.options;
var isDebug = !!options['d'];
@ -37,6 +49,8 @@ casper.then(function() {
this.waitForText('Your Top Repositories');
});
disableOlark();
casper.then(function() {
this.capture(outputDir + 'user-home.png');
});
@ -49,6 +63,8 @@ casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '?tag=v2.0', function(
});
});
disableOlark();
casper.then(function() {
this.capture(outputDir + 'repo-view.png');
});
@ -68,6 +84,8 @@ casper.thenOpen(rootUrl + 'repository/devtable/' + repo + '/admin', function() {
this.waitForSelector('.repo-access-state');
});
disableOlark();
casper.then(function() {
this.capture(outputDir + 'repo-admin.png');
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 197 KiB