@argos-ci/puppeteer 4.0.8 → 4.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +5 -5
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.8",
4
+ "version": "4.0.10",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -42,11 +42,11 @@
42
42
  "puppeteer": ">=1"
43
43
  },
44
44
  "dependencies": {
45
- "@argos-ci/browser": "4.1.4",
46
- "@argos-ci/util": "2.3.2"
45
+ "@argos-ci/browser": "4.2.1",
46
+ "@argos-ci/util": "2.3.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@argos-ci/cli": "2.5.8",
49
+ "@argos-ci/cli": "2.5.9",
50
50
  "@types/jest": "^29.5.14",
51
51
  "@types/node": "^18.19.44",
52
52
  "expect-puppeteer": "^11.0.0",
@@ -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": "59ebec1a1883175bec3f77a2b885f7f3ef42d7cd"
69
+ "gitHead": "ecab2281c36828d0c43728e3ed98e1eefe227c99"
70
70
  }