@argos-ci/puppeteer 4.0.7 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -62,11 +62,12 @@ async function setViewportSize(page, viewportSize) {
|
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
function getStabilizationContext(options) {
|
|
65
|
-
const { argosCSS } = options;
|
|
65
|
+
const { argosCSS, viewports } = options;
|
|
66
66
|
const fullPage = checkIsFullPage(options);
|
|
67
67
|
return {
|
|
68
68
|
fullPage,
|
|
69
69
|
argosCSS,
|
|
70
|
+
viewports,
|
|
70
71
|
options: options.stabilize
|
|
71
72
|
};
|
|
72
73
|
}
|
|
@@ -190,6 +191,7 @@ async function argosScreenshot(page, name, options = {}) {
|
|
|
190
191
|
async function stabilizeAndScreenshot(name2) {
|
|
191
192
|
await waitForReadiness(page, options);
|
|
192
193
|
const afterEach = await beforeEach(page, options);
|
|
194
|
+
await waitForReadiness(page, options);
|
|
193
195
|
const [screenshotPath, metadata] = await Promise.all([
|
|
194
196
|
getScreenshotPath(name2),
|
|
195
197
|
collectMetadata()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/puppeteer",
|
|
3
3
|
"description": "Puppeteer SDK for visual testing with Argos.",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.9",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"puppeteer": ">=1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@argos-ci/browser": "4.
|
|
45
|
+
"@argos-ci/browser": "4.2.0",
|
|
46
46
|
"@argos-ci/util": "2.3.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
67
67
|
"lint": "eslint ."
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "899956c05cad3211eb2dd030a214a2e0af12e27d"
|
|
70
70
|
}
|