...
 
Commits (2)
......@@ -17,6 +17,7 @@
"height": 1080
}
],
"onReadyScript": "puppet/onReady.js",
"scenarios": [
{
"label": "Home",
......@@ -49,6 +50,7 @@
}
],
"paths": {
"engine_scripts": "backstop/engine_scripts",
"bitmaps_reference": "backstop/references",
"bitmaps_test": "backstop/tests",
"html_report": "backstop/results/html_report",
......
module.exports = async (page, scenario, viewport) => {
await page.setViewport({
width: viewport.width,
height: viewport.height,
isMobile: true
});
};
......@@ -16,6 +16,7 @@
"test:webapp:unit": "jest --coverage ./components/*.test.js ./lib/*.test.js",
"test:webapp:unit:watch": "npm run test:webapp:unit -- --watch",
"test:webapp:build": "npm run now-build",
"test:webapp:visualregression": "bash testVisualRegression.sh",
"build": "next build",
"dev": "next",
"now-build": "next build",
......
#!/bin/bash
now dev & 2>&1 > /dev/null
sleep 15s
backstop test
killall now
killall node