@argos-ci/playwright 5.0.7 → 5.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -142,10 +142,11 @@ async function setViewportSize(page, viewportSize) {
142
142
  );
143
143
  }
144
144
  function getStabilizationContext(options) {
145
- const { fullPage, argosCSS, stabilize } = options;
145
+ const { fullPage, argosCSS, stabilize, viewports } = options;
146
146
  return {
147
147
  fullPage,
148
148
  argosCSS,
149
+ viewports,
149
150
  options: stabilize
150
151
  };
151
152
  }
@@ -320,6 +321,7 @@ async function argosScreenshot(page, name, options = {}) {
320
321
  });
321
322
  await waitForReadiness(page, options);
322
323
  const afterEach = await beforeEach(page, options);
324
+ await waitForReadiness(page, options);
323
325
  await Promise.all([
324
326
  handle.screenshot({
325
327
  path: screenshotPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/playwright",
3
3
  "description": "Playwright SDK for visual testing with Argos.",
4
- "version": "5.0.7",
4
+ "version": "5.0.9",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "node": ">=18.16.0"
48
48
  },
49
49
  "dependencies": {
50
- "@argos-ci/browser": "4.1.3",
50
+ "@argos-ci/browser": "4.2.0",
51
51
  "@argos-ci/core": "3.2.1",
52
52
  "@argos-ci/util": "2.3.2",
53
53
  "chalk": "^5.4.1",
@@ -67,5 +67,5 @@
67
67
  "check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
68
68
  "lint": "eslint ."
69
69
  },
70
- "gitHead": "2941a39afff53f3c28682f7763fe7973cb28372b"
70
+ "gitHead": "899956c05cad3211eb2dd030a214a2e0af12e27d"
71
71
  }