@argos-ci/cypress 2.3.4 → 3.1.0
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 +7 -5
- package/dist/task.d.cts +1 -1
- package/dist/task.d.ts +1 -1
- package/package.json +8 -9
package/dist/support.js
CHANGED
|
@@ -11,12 +11,14 @@ import {
|
|
|
11
11
|
} from "@argos-ci/util/browser";
|
|
12
12
|
|
|
13
13
|
// package.json
|
|
14
|
-
var version = "
|
|
14
|
+
var version = "3.0.0";
|
|
15
15
|
|
|
16
16
|
// src/support.ts
|
|
17
17
|
function injectArgos() {
|
|
18
18
|
cy.window({ log: false }).then((window) => {
|
|
19
|
-
if (typeof window.__ARGOS__ !== "undefined")
|
|
19
|
+
if (typeof window.__ARGOS__ !== "undefined") {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
20
22
|
window.eval(getGlobalScript());
|
|
21
23
|
});
|
|
22
24
|
}
|
|
@@ -41,7 +43,7 @@ Cypress.Commands.add(
|
|
|
41
43
|
(subject, name, options = {}) => {
|
|
42
44
|
const {
|
|
43
45
|
viewports,
|
|
44
|
-
argosCSS,
|
|
46
|
+
argosCSS: _argosCSS,
|
|
45
47
|
stabilize = true,
|
|
46
48
|
...cypressOptions
|
|
47
49
|
} = options;
|
|
@@ -72,7 +74,7 @@ Cypress.Commands.add(
|
|
|
72
74
|
})
|
|
73
75
|
);
|
|
74
76
|
}
|
|
75
|
-
|
|
77
|
+
const ref = {};
|
|
76
78
|
cy.wrap(subject).screenshot(name2, {
|
|
77
79
|
blackout: ['[data-visual-test="blackout"]'].concat(
|
|
78
80
|
options.blackout || []
|
|
@@ -97,7 +99,7 @@ Cypress.Commands.add(
|
|
|
97
99
|
title: Cypress.currentTest.title,
|
|
98
100
|
titlePath: Cypress.currentTest.titlePath,
|
|
99
101
|
retry: Cypress.currentRetry,
|
|
100
|
-
// @ts-
|
|
102
|
+
// @ts-expect-error - private property
|
|
101
103
|
retries: cy.state("runnable")._retries
|
|
102
104
|
},
|
|
103
105
|
browser: {
|
package/dist/task.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadParameters } from '@argos-ci/core';
|
|
2
2
|
|
|
3
|
-
type RegisterArgosTaskOptions = Omit<UploadParameters, "files" | "root"> & {
|
|
3
|
+
type RegisterArgosTaskOptions = Omit<UploadParameters, "files" | "root" | "metadata"> & {
|
|
4
4
|
/**
|
|
5
5
|
* Upload the report to Argos.
|
|
6
6
|
* @default true
|
package/dist/task.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadParameters } from '@argos-ci/core';
|
|
2
2
|
|
|
3
|
-
type RegisterArgosTaskOptions = Omit<UploadParameters, "files" | "root"> & {
|
|
3
|
+
type RegisterArgosTaskOptions = Omit<UploadParameters, "files" | "root" | "metadata"> & {
|
|
4
4
|
/**
|
|
5
5
|
* Upload the report to Argos.
|
|
6
6
|
* @default true
|
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": "
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -45,26 +45,25 @@
|
|
|
45
45
|
"node": ">=18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@argos-ci/browser": "
|
|
49
|
-
"@argos-ci/core": "3.
|
|
50
|
-
"@argos-ci/util": "2.
|
|
48
|
+
"@argos-ci/browser": "3.0.1",
|
|
49
|
+
"@argos-ci/core": "3.1.0",
|
|
50
|
+
"@argos-ci/util": "2.3.0",
|
|
51
51
|
"cypress-wait-until": "^3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"cypress": "^12.0.0 || ^13.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@argos-ci/cli": "
|
|
57
|
+
"@argos-ci/cli": "2.5.5",
|
|
58
58
|
"@argos-ci/cypress": "workspace:.",
|
|
59
59
|
"@types/node": "^18.19.44",
|
|
60
|
-
"cypress": "^
|
|
61
|
-
"eslint-plugin-cypress": "^
|
|
62
|
-
"eslint-plugin-html": "^8.1.1"
|
|
60
|
+
"cypress": "^14.0.0",
|
|
61
|
+
"eslint-plugin-cypress": "^4.1.0"
|
|
63
62
|
},
|
|
64
63
|
"scripts": {
|
|
65
64
|
"build": "tsup",
|
|
66
65
|
"test": "pnpm exec cypress run",
|
|
67
66
|
"e2e": "UPLOAD_TO_ARGOS=true pnpm run test"
|
|
68
67
|
},
|
|
69
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "8d46b4d4fc2b59b4fe93bac6fda02fb18440f935"
|
|
70
69
|
}
|