@argos-ci/cypress 5.0.4 → 5.0.6

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/support.js +4 -2
  2. package/package.json +5 -5
package/dist/support.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@argos-ci/util/browser";
12
12
 
13
13
  // package.json
14
- var version = "5.0.3";
14
+ var version = "5.0.5";
15
15
 
16
16
  // src/shared.ts
17
17
  var NAME_PREFIX = "argos/";
@@ -26,11 +26,12 @@ function injectArgos() {
26
26
  });
27
27
  }
28
28
  function getStabilizationContext(options) {
29
- const { argosCSS } = options;
29
+ const { argosCSS, viewports } = options;
30
30
  const fullPage = !options.capture || options.capture === "fullPage";
31
31
  return {
32
32
  fullPage,
33
33
  argosCSS,
34
+ viewports,
34
35
  options: options.stabilize
35
36
  };
36
37
  }
@@ -92,6 +93,7 @@ Cypress.Commands.add(
92
93
  function stabilizeAndScreenshot(name2) {
93
94
  waitForReadiness(options);
94
95
  const afterEach = beforeEach(options);
96
+ waitForReadiness(options);
95
97
  const ref = {};
96
98
  cy.wrap(subject).screenshot(`${NAME_PREFIX}${name2}`, {
97
99
  blackout: ['[data-visual-test="blackout"]'].concat(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/cypress",
3
3
  "description": "Cypress SDK for visual testing with Argos.",
4
- "version": "5.0.4",
4
+ "version": "5.0.6",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -45,9 +45,9 @@
45
45
  "node": ">=18.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@argos-ci/browser": "4.1.4",
49
- "@argos-ci/core": "3.2.1",
50
- "@argos-ci/util": "2.3.2",
48
+ "@argos-ci/browser": "4.2.1",
49
+ "@argos-ci/core": "3.2.2",
50
+ "@argos-ci/util": "2.3.3",
51
51
  "cypress-wait-until": "^3.0.2"
52
52
  },
53
53
  "peerDependencies": {
@@ -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": "59ebec1a1883175bec3f77a2b885f7f3ef42d7cd"
70
+ "gitHead": "ecab2281c36828d0c43728e3ed98e1eefe227c99"
71
71
  }