Many screenshots from different pages in different resolutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'A lot of screenshots': function (test) { | |
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}]; | |
var pages = ['http://facebook.com', 'http://twitter.com', 'http://dalekjs.com']; | |
resolutions.forEach(function (res) { | |
pages.forEach(function (page) { | |
test.open(page) | |
.resize(res) | |
.screenshot('pics/' + res.width + '_' + res.height + '_' + page.replace('http://', '') + '.png') | |
}); | |
}); | |
test.done(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great work, Sebastian.