diff --git a/screenshots/screenshots.js b/screenshots/screenshots.js index ad3841640..c8cd07b7c 100644 --- a/screenshots/screenshots.js +++ b/screenshots/screenshots.js @@ -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'); }); diff --git a/static/img/repo-admin.png b/static/img/repo-admin.png index 91c97a197..e3b08e1c2 100644 Binary files a/static/img/repo-admin.png and b/static/img/repo-admin.png differ diff --git a/static/img/user-home.png b/static/img/user-home.png index e963fff99..11f95fc78 100644 Binary files a/static/img/user-home.png and b/static/img/user-home.png differ