The actual snapshot is saved in test.js.snap
.
Generated by AVA.
Snapshot 1
{
authentication: {
password: 'password',
username: 'username',
},
blockAds: false,
clickElement: 'button',
clip: {
height: 1024,
width: 300,
x: 10,
y: 30,
},
cookies: [
'id=unicorn; Expires=Wed, 21 Oct 2018 07:28:00 GMT;',
],
darkMode: true,
debug: false,
defaultBackground: false,
delay: 10,
disableAnimations: true,
element: '.main-content',
emulateDevice: 'iPhone X',
fullPage: false,
header: 'x-powered-by: capture-website-cli',
headers: {
'x-powered-by': 'capture-website-cli',
},
height: 600,
hideElements: [
'.sidebar',
],
inset: {
bottom: -15,
left: 25,
right: -15,
top: 10,
},
internalPrintFlags: true,
isJavaScriptEnabled: false,
javascript: false,
launchOptions: {
headless: false,
},
listDevices: false,
modules: [
'https://sindresorhus.com/remote-file.js',
'local-file.js',
'document.body.style.backgroundColor = \'red\'',
],
output: 'screenshot.png',
overwrite: false,
quality: 0.5,
removeElements: [
'img.ad',
],
scaleFactor: 3,
scripts: [],
scrollToElement: '#map',
styles: [],
timeout: 80,
type: 'jpeg.',
userAgent: 'I love unicorns',
waitForElement: '#header',
width: 1000,
}