@argos-ci/cypress 5.0.3 → 5.0.5
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/support.js +4 -2
- package/package.json +3 -3
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.
|
|
14
|
+
var version = "5.0.4";
|
|
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
|
+
"version": "5.0.5",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"node": ">=18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@argos-ci/browser": "4.
|
|
48
|
+
"@argos-ci/browser": "4.2.0",
|
|
49
49
|
"@argos-ci/core": "3.2.1",
|
|
50
50
|
"@argos-ci/util": "2.3.2",
|
|
51
51
|
"cypress-wait-until": "^3.0.2"
|
|
@@ -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": "
|
|
70
|
+
"gitHead": "899956c05cad3211eb2dd030a214a2e0af12e27d"
|
|
71
71
|
}
|