mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 22:54:24 +02:00
Move casper into grunt file and OR into opening images
This commit is contained in:
parent
c469368727
commit
461da3b42c
2 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
|
||||
var screenshotCounter = 0;
|
||||
var screenshotRoot = './src/__tests__/casperjs/screenshots/entirePage';
|
||||
|
||||
var CasperUtils = {
|
||||
|
||||
|
@ -83,7 +84,7 @@ var CasperUtils = {
|
|||
entirePage: function () {
|
||||
screenshotCounter++;
|
||||
|
||||
casper.capture('screenshots/entirePage' + screenshotCounter + '.png', {
|
||||
casper.capture(screenshotRoot + screenshotCounter + '.png', {
|
||||
top: 0,
|
||||
left: 0,
|
||||
// These seem to be the hardcoded viewport dimensions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue