@argos-ci/cypress 6.2.9 → 6.2.11
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 +9 -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 = "6.2.
|
|
14
|
+
var version = "6.2.10";
|
|
15
15
|
|
|
16
16
|
// src/shared.ts
|
|
17
17
|
var NAME_PREFIX = "argos/";
|
|
@@ -57,6 +57,13 @@ function beforeEach(options) {
|
|
|
57
57
|
);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
+
function getRetries(value) {
|
|
61
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
64
|
+
const retries = Math.floor(value);
|
|
65
|
+
return retries < 0 ? 0 : retries;
|
|
66
|
+
}
|
|
60
67
|
function waitForReadiness(options) {
|
|
61
68
|
const context = getStabilizationContext(options);
|
|
62
69
|
cy.waitUntil(
|
|
@@ -120,7 +127,7 @@ Cypress.Commands.add(
|
|
|
120
127
|
titlePath: Cypress.currentTest.titlePath,
|
|
121
128
|
retry: Cypress.currentRetry,
|
|
122
129
|
// @ts-expect-error - private property
|
|
123
|
-
retries: cy.state("runnable")._retries
|
|
130
|
+
retries: getRetries(cy.state("runnable")._retries)
|
|
124
131
|
},
|
|
125
132
|
browser: {
|
|
126
133
|
name: Cypress.browser.name,
|
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": "6.2.
|
|
4
|
+
"version": "6.2.11",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@argos-ci/browser": "5.1.2",
|
|
49
|
-
"@argos-ci/core": "5.0
|
|
49
|
+
"@argos-ci/core": "5.1.0",
|
|
50
50
|
"@argos-ci/util": "3.2.0",
|
|
51
51
|
"cypress-wait-until": "^3.0.2"
|
|
52
52
|
},
|
|
@@ -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": "a13deaa740c8126c3d98499330ef42d6871b96d7"
|
|
71
71
|
}
|