cypress 14.5.4 → 15.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/angular/README.md +1 -1
- package/angular/angular/README.md +1 -1
- package/angular/angular/dist/index.js +7 -9
- package/angular/angular/package.json +7 -7
- package/angular/dist/index.js +7 -9
- package/angular/package.json +7 -7
- package/lib/exec/spawn.js +0 -100
- package/lib/tasks/install.js +0 -2
- package/lib/util.js +9 -10
- package/mount-utils/mount-utils/package.json +7 -2
- package/mount-utils/package.json +7 -2
- package/package.json +9 -6
- package/react/package.json +4 -4
- package/react/react/package.json +4 -4
- package/types/cypress-automation.d.ts +18 -0
- package/types/cypress.d.ts +40 -14
- package/types/index.d.ts +1 -1
- package/vue/dist/cypress-vue.cjs.js +2 -0
- package/vue/dist/cypress-vue.esm-bundler.js +2 -0
- package/vue/package.json +4 -4
- package/vue/vue/dist/cypress-vue.cjs.js +2 -0
- package/vue/vue/dist/cypress-vue.esm-bundler.js +2 -0
- package/vue/vue/package.json +4 -4
package/angular/README.md
CHANGED
@@ -6,7 +6,7 @@ Mount Angular components in the open source [Cypress.io](https://www.cypress.io/
|
|
6
6
|
|
7
7
|
## Requirements
|
8
8
|
|
9
|
-
- Angular
|
9
|
+
- Angular 18.0.0+ (`@cypress/angular@2` supports Angular 13 - 16 and `@cypress/angular@3` supports Angular 17).
|
10
10
|
|
11
11
|
## Development
|
12
12
|
|
@@ -6,7 +6,7 @@ Mount Angular components in the open source [Cypress.io](https://www.cypress.io/
|
|
6
6
|
|
7
7
|
## Requirements
|
8
8
|
|
9
|
-
- Angular
|
9
|
+
- Angular 18.0.0+ (`@cypress/angular@2` supports Angular 13 - 16 and `@cypress/angular@3` supports Angular 17).
|
10
10
|
|
11
11
|
## Development
|
12
12
|
|
@@ -792,7 +792,7 @@ var ReplaySubject = (function (_super) {
|
|
792
792
|
}(Subject));
|
793
793
|
|
794
794
|
/**
|
795
|
-
* @license Angular
|
795
|
+
* @license Angular v18.2.13
|
796
796
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
797
797
|
* License: MIT
|
798
798
|
*/
|
@@ -897,11 +897,6 @@ function cleanup() {
|
|
897
897
|
activeFixture = null;
|
898
898
|
activeInternalSubscriptions = [];
|
899
899
|
}
|
900
|
-
// 'zone.js/testing' is not properly aliasing `it.skip` but it does provide `xit`/`xspecify`
|
901
|
-
// Written up under https://github.com/angular/angular/issues/46297 but is not seeing movement
|
902
|
-
// so we'll patch here pending a fix in that library
|
903
|
-
// @ts-ignore Ignore so that way we can bypass semantic error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
|
904
|
-
globalThis.it.skip = globalThis.xit;
|
905
900
|
let CypressAngularErrorHandler = class CypressAngularErrorHandler {
|
906
901
|
handleError(error) {
|
907
902
|
throw error;
|
@@ -1130,11 +1125,14 @@ function setupComponent(config, fixture) {
|
|
1130
1125
|
}
|
1131
1126
|
});
|
1132
1127
|
getComponentOutputs(fixture.componentRef.componentType).forEach((key) => {
|
1133
|
-
var _a;
|
1128
|
+
var _a, _b;
|
1134
1129
|
const property = component[key];
|
1135
|
-
|
1130
|
+
// With the introduction of https://github.com/cypress-io/cypress/pull/31993, we want to make sure that component inputs are reference safe inside cy.mount().
|
1131
|
+
// However, the exception to this is if the user passes in a Cypress output spy as a property in order to maintain backwards compatibility.
|
1132
|
+
// @ts-expect-error
|
1133
|
+
if (property instanceof EventEmitter || (((_a = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(key)) && (config === null || config === void 0 ? void 0 : config.componentProperties[key]) instanceof EventEmitter)) {
|
1136
1134
|
// only assign props if they are passed into the component
|
1137
|
-
if ((
|
1135
|
+
if ((_b = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _b === void 0 ? void 0 : _b.hasOwnProperty(key)) {
|
1138
1136
|
// @ts-expect-error
|
1139
1137
|
const passedInValue = config === null || config === void 0 ? void 0 : config.componentProperties[key];
|
1140
1138
|
component[key] = passedInValue;
|
@@ -13,20 +13,20 @@
|
|
13
13
|
},
|
14
14
|
"dependencies": {},
|
15
15
|
"devDependencies": {
|
16
|
-
"@angular/common": "^
|
17
|
-
"@angular/core": "^
|
18
|
-
"@angular/platform-browser-dynamic": "^
|
16
|
+
"@angular/common": "^18.0.0",
|
17
|
+
"@angular/core": "^18.0.0",
|
18
|
+
"@angular/platform-browser-dynamic": "^18.0.0",
|
19
19
|
"@cypress/mount-utils": "0.0.0-development",
|
20
20
|
"rollup": "^4.24.4",
|
21
21
|
"typescript": "~5.4.5",
|
22
22
|
"zone.js": "~0.14.6"
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
|
-
"@angular/common": ">=
|
26
|
-
"@angular/core": ">=
|
27
|
-
"@angular/platform-browser-dynamic": ">=
|
25
|
+
"@angular/common": ">=18.0.0",
|
26
|
+
"@angular/core": ">=18.0.0",
|
27
|
+
"@angular/platform-browser-dynamic": ">=18.0.0",
|
28
28
|
"rxjs": ">=7.5.0",
|
29
|
-
"zone.js": ">=0.
|
29
|
+
"zone.js": ">=0.14.0"
|
30
30
|
},
|
31
31
|
"files": [
|
32
32
|
"dist"
|
package/angular/dist/index.js
CHANGED
@@ -792,7 +792,7 @@ var ReplaySubject = (function (_super) {
|
|
792
792
|
}(Subject));
|
793
793
|
|
794
794
|
/**
|
795
|
-
* @license Angular
|
795
|
+
* @license Angular v18.2.13
|
796
796
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
797
797
|
* License: MIT
|
798
798
|
*/
|
@@ -897,11 +897,6 @@ function cleanup() {
|
|
897
897
|
activeFixture = null;
|
898
898
|
activeInternalSubscriptions = [];
|
899
899
|
}
|
900
|
-
// 'zone.js/testing' is not properly aliasing `it.skip` but it does provide `xit`/`xspecify`
|
901
|
-
// Written up under https://github.com/angular/angular/issues/46297 but is not seeing movement
|
902
|
-
// so we'll patch here pending a fix in that library
|
903
|
-
// @ts-ignore Ignore so that way we can bypass semantic error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
|
904
|
-
globalThis.it.skip = globalThis.xit;
|
905
900
|
let CypressAngularErrorHandler = class CypressAngularErrorHandler {
|
906
901
|
handleError(error) {
|
907
902
|
throw error;
|
@@ -1130,11 +1125,14 @@ function setupComponent(config, fixture) {
|
|
1130
1125
|
}
|
1131
1126
|
});
|
1132
1127
|
getComponentOutputs(fixture.componentRef.componentType).forEach((key) => {
|
1133
|
-
var _a;
|
1128
|
+
var _a, _b;
|
1134
1129
|
const property = component[key];
|
1135
|
-
|
1130
|
+
// With the introduction of https://github.com/cypress-io/cypress/pull/31993, we want to make sure that component inputs are reference safe inside cy.mount().
|
1131
|
+
// However, the exception to this is if the user passes in a Cypress output spy as a property in order to maintain backwards compatibility.
|
1132
|
+
// @ts-expect-error
|
1133
|
+
if (property instanceof EventEmitter || (((_a = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(key)) && (config === null || config === void 0 ? void 0 : config.componentProperties[key]) instanceof EventEmitter)) {
|
1136
1134
|
// only assign props if they are passed into the component
|
1137
|
-
if ((
|
1135
|
+
if ((_b = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _b === void 0 ? void 0 : _b.hasOwnProperty(key)) {
|
1138
1136
|
// @ts-expect-error
|
1139
1137
|
const passedInValue = config === null || config === void 0 ? void 0 : config.componentProperties[key];
|
1140
1138
|
component[key] = passedInValue;
|
package/angular/package.json
CHANGED
@@ -13,20 +13,20 @@
|
|
13
13
|
},
|
14
14
|
"dependencies": {},
|
15
15
|
"devDependencies": {
|
16
|
-
"@angular/common": "^
|
17
|
-
"@angular/core": "^
|
18
|
-
"@angular/platform-browser-dynamic": "^
|
16
|
+
"@angular/common": "^18.0.0",
|
17
|
+
"@angular/core": "^18.0.0",
|
18
|
+
"@angular/platform-browser-dynamic": "^18.0.0",
|
19
19
|
"@cypress/mount-utils": "0.0.0-development",
|
20
20
|
"rollup": "^4.24.4",
|
21
21
|
"typescript": "~5.4.5",
|
22
22
|
"zone.js": "~0.14.6"
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
|
-
"@angular/common": ">=
|
26
|
-
"@angular/core": ">=
|
27
|
-
"@angular/platform-browser-dynamic": ">=
|
25
|
+
"@angular/common": ">=18.0.0",
|
26
|
+
"@angular/core": ">=18.0.0",
|
27
|
+
"@angular/platform-browser-dynamic": ">=18.0.0",
|
28
28
|
"rxjs": ">=7.5.0",
|
29
|
-
"zone.js": ">=0.
|
29
|
+
"zone.js": ">=0.14.0"
|
30
30
|
},
|
31
31
|
"files": [
|
32
32
|
"dist"
|
package/lib/exec/spawn.js
CHANGED
@@ -6,105 +6,12 @@ const cp = require('child_process');
|
|
6
6
|
const path = require('path');
|
7
7
|
const Promise = require('bluebird');
|
8
8
|
const debug = require('debug')('cypress:cli');
|
9
|
-
const debugVerbose = require('debug')('cypress-verbose:cli');
|
10
9
|
const util = require('../util');
|
11
10
|
const state = require('../tasks/state');
|
12
11
|
const xvfb = require('./xvfb');
|
13
12
|
const verify = require('../tasks/verify');
|
14
13
|
const errors = require('../errors');
|
15
14
|
const readline = require('readline');
|
16
|
-
const isXlibOrLibudevRe = /^(?:Xlib|libudev)/;
|
17
|
-
const isHighSierraWarningRe = /\*\*\* WARNING/;
|
18
|
-
const isRenderWorkerRe = /\.RenderWorker-/;
|
19
|
-
// This is a warning that occurs when running in a container on Linux.
|
20
|
-
// https://github.com/cypress-io/cypress/issues/29563
|
21
|
-
// Example:
|
22
|
-
// [437:1212/125803.148706:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 610: Permission denied (13)
|
23
|
-
const isOOMScoreWarningRe = /Failed to adjust OOM score of renderer with pid/;
|
24
|
-
|
25
|
-
// Chromium (which Electron uses) always makes several attempts to connect to the system dbus.
|
26
|
-
// This works fine in most desktop environments, but in a docker container, there is no dbus service
|
27
|
-
// and Chromium emits several error lines, similar to these:
|
28
|
-
|
29
|
-
// [1957:0406/160550.146820:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
|
30
|
-
// [1957:0406/160550.147994:ERROR:bus.cc(392)] Failed to connect to the bus: Address does not contain a colon
|
31
|
-
|
32
|
-
// These warnings are absolutely harmless. Failure to connect to dbus means that electron won't be able to access the user's
|
33
|
-
// credential wallet (none exists in a docker container) and won't show up in the system tray (again, none exists).
|
34
|
-
// Failure to connect is expected and normal here, but users frequently misidentify these errors as the cause of their problems.
|
35
|
-
|
36
|
-
// https://github.com/cypress-io/cypress/issues/19299
|
37
|
-
const isDbusWarning = /Failed to connect to the bus:/;
|
38
|
-
|
39
|
-
// Electron began logging these on self-signed certs with 17.0.0-alpha.4.
|
40
|
-
// Once this is fixed upstream this regex can be removed: https://github.com/electron/electron/issues/34583
|
41
|
-
// Sample:
|
42
|
-
// [3801:0606/152837.383892:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.googletagmanager.com failed:
|
43
|
-
// ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.googletagmanager.com) -----
|
44
|
-
// ERROR: No matching issuer found
|
45
|
-
const isCertVerifyProcBuiltin = /(^\[.*ERROR:cert_verify_proc_builtin\.cc|^----- Certificate i=0 \(OU=Cypress Proxy|^ERROR: No matching issuer found$)/;
|
46
|
-
|
47
|
-
/**
|
48
|
-
* Electron logs benign warnings about Vulkan when run on hosts that do not have a GPU. This is coming from the primary Electron process,
|
49
|
-
* and not the browser being used for tests.
|
50
|
-
* Samples:
|
51
|
-
* Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_intel.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
|
52
|
-
* Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so supports Vulkan 1.1, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
|
53
|
-
* Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this verison of Vulkan (Policy #LDP_DRIVER_7)
|
54
|
-
* Warning: Layer VK_LAYER_MESA_device_select uses API version 1.2 which is older than the application specified API version of 1.3. May cause issues.
|
55
|
-
*/
|
56
|
-
|
57
|
-
const isHostVulkanDriverWarning = /^Warning:.+(#LDP_DRIVER_7|VK_LAYER_MESA_device_select).+/;
|
58
|
-
|
59
|
-
/**
|
60
|
-
* Electron logs benign warnings about Vulkan when run in docker containers whose host does not have a GPU. This is coming from the primary
|
61
|
-
* Electron process, and not the browser being used for tests.
|
62
|
-
* Sample:
|
63
|
-
* Warning: vkCreateInstance: Found no drivers!
|
64
|
-
* Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
|
65
|
-
* at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
|
66
|
-
* at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
|
67
|
-
* at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
|
68
|
-
* at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
|
69
|
-
* at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
|
70
|
-
*/
|
71
|
-
|
72
|
-
const isContainerVulkanDriverWarning = /^Warning: vkCreateInstance/;
|
73
|
-
const isContainerVulkanStack = /^\s*at (CheckVkSuccessImpl|CreateVkInstance|Initialize|Create|operator).+(VulkanError|BackendVk).cpp/;
|
74
|
-
|
75
|
-
/**
|
76
|
-
* In Electron 32.0.0 a new debug scenario log message started appearing when iframes navigate to about:blank. This is a benign message.
|
77
|
-
* https://github.com/electron/electron/issues/44368
|
78
|
-
* Sample:
|
79
|
-
* [78887:1023/114920.074882:ERROR:debug_utils.cc(14)] Hit debug scenario: 4
|
80
|
-
*/
|
81
|
-
const isDebugScenario4 = /^\[[^\]]+debug_utils\.cc[^\]]+\] Hit debug scenario: 4/;
|
82
|
-
|
83
|
-
/**
|
84
|
-
* In Electron 32.0.0 a new EGL driver message started appearing when running on Linux. This is a benign message.
|
85
|
-
* https://github.com/electron/electron/issues/43415
|
86
|
-
* Sample:
|
87
|
-
* [78887:1023/114920.074882:ERROR:gl_display.cc(14)] EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute.
|
88
|
-
*/
|
89
|
-
const isEGLDriverMessage = /^\[[^\]]+gl_display\.cc[^\]]+\] EGL Driver message \(Error\) eglQueryDeviceAttribEXT: Bad attribute\./;
|
90
|
-
|
91
|
-
/**
|
92
|
-
* Mesa/GLX related warnings that occur in certain Linux environments without proper GPU support
|
93
|
-
* or when running in containers. These are benign warnings that don't affect functionality.
|
94
|
-
* Samples:
|
95
|
-
* error: XDG_RUNTIME_DIR is invalid or not set in the environment.
|
96
|
-
* MESA: error: ZINK: failed to choose pdev
|
97
|
-
* glx: failed to create drisw screen
|
98
|
-
*/
|
99
|
-
const isXdgRuntimeError = /^error: XDG_RUNTIME_DIR is invalid or not set/;
|
100
|
-
const isMesaZinkError = /^MESA: error: ZINK: failed to choose pdev/;
|
101
|
-
const isGlxDriverError = /^glx: failed to create drisw screen/;
|
102
|
-
const GARBAGE_WARNINGS = [isXlibOrLibudevRe, isHighSierraWarningRe, isRenderWorkerRe, isOOMScoreWarningRe, isDbusWarning, isCertVerifyProcBuiltin, isHostVulkanDriverWarning, isContainerVulkanDriverWarning, isContainerVulkanStack, isDebugScenario4, isEGLDriverMessage, isXdgRuntimeError, isMesaZinkError, isGlxDriverError];
|
103
|
-
const isGarbageLineWarning = str => {
|
104
|
-
return _.some(GARBAGE_WARNINGS, re => {
|
105
|
-
return re.test(str);
|
106
|
-
});
|
107
|
-
};
|
108
15
|
function isPlatform(platform) {
|
109
16
|
return os.platform() === platform;
|
110
17
|
}
|
@@ -131,7 +38,6 @@ function getStdio(needsXvfb) {
|
|
131
38
|
return 'inherit';
|
132
39
|
}
|
133
40
|
module.exports = {
|
134
|
-
isGarbageLineWarning,
|
135
41
|
start(args, options = {}) {
|
136
42
|
const needsXvfb = xvfb.isNeeded();
|
137
43
|
let executable = state.getPathToExecutable(state.getBinaryDir());
|
@@ -267,12 +173,6 @@ module.exports = {
|
|
267
173
|
child.stderr.on('data', data => {
|
268
174
|
const str = data.toString();
|
269
175
|
|
270
|
-
// bail if this is warning line garbage
|
271
|
-
if (isGarbageLineWarning(str)) {
|
272
|
-
debugVerbose(str);
|
273
|
-
return;
|
274
|
-
}
|
275
|
-
|
276
176
|
// if we have a callback and this explicitly returns
|
277
177
|
// false then bail
|
278
178
|
if (onStderrData && onStderrData(str)) {
|
package/lib/tasks/install.js
CHANGED
@@ -57,8 +57,6 @@ const displayCompletionMsg = () => {
|
|
57
57
|
logger.warn(stripIndent`
|
58
58
|
${logSymbols.warning} Warning: It looks like you\'ve installed Cypress globally.
|
59
59
|
|
60
|
-
This will work, but it'\s not recommended.
|
61
|
-
|
62
60
|
The recommended way to install Cypress is as a devDependency per project.
|
63
61
|
|
64
62
|
You should probably run these commands:
|
package/lib/util.js
CHANGED
@@ -11,7 +11,7 @@ const tty = require('tty');
|
|
11
11
|
const path = require('path');
|
12
12
|
const isCi = require('ci-info').isCI;
|
13
13
|
const execa = require('execa');
|
14
|
-
const
|
14
|
+
const si = require('systeminformation');
|
15
15
|
const chalk = require('chalk');
|
16
16
|
const Promise = require('bluebird');
|
17
17
|
const cachedir = require('cachedir');
|
@@ -27,7 +27,6 @@ const debug = require('debug')('cypress:cli');
|
|
27
27
|
const fs = require('./fs');
|
28
28
|
const pkg = require(path.join(__dirname, '..', 'package.json'));
|
29
29
|
const issuesUrl = 'https://github.com/cypress-io/cypress/issues';
|
30
|
-
const getosAsync = Promise.promisify(getos);
|
31
30
|
|
32
31
|
/**
|
33
32
|
* Returns SHA512 of a file
|
@@ -322,14 +321,14 @@ const util = {
|
|
322
321
|
isLinux,
|
323
322
|
getOsVersionAsync() {
|
324
323
|
return Promise.try(() => {
|
325
|
-
|
326
|
-
|
327
|
-
return
|
328
|
-
}
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
324
|
+
return si.osInfo().then(osInfo => {
|
325
|
+
if (osInfo.distro && osInfo.release) {
|
326
|
+
return `${osInfo.distro} - ${osInfo.release}`;
|
327
|
+
}
|
328
|
+
return os.release();
|
329
|
+
}).catch(() => {
|
330
|
+
return os.release();
|
331
|
+
});
|
333
332
|
});
|
334
333
|
},
|
335
334
|
async getPlatformInfo() {
|
@@ -7,14 +7,16 @@
|
|
7
7
|
"build": "tsc || echo 'built, with type errors'",
|
8
8
|
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
9
9
|
"check-ts": "tsc --noEmit",
|
10
|
-
"lint": "eslint
|
10
|
+
"lint": "eslint",
|
11
11
|
"watch": "tsc -w"
|
12
12
|
},
|
13
13
|
"dependencies": {},
|
14
14
|
"devDependencies": {
|
15
|
+
"@packages/eslint-config": "0.0.0-development",
|
15
16
|
"@rollup/plugin-commonjs": "^17.1.0",
|
16
17
|
"@rollup/plugin-node-resolve": "^11.1.1",
|
17
|
-
"
|
18
|
+
"eslint": "^9.31.0",
|
19
|
+
"rollup": "3.29.5",
|
18
20
|
"rollup-plugin-dts": "5.0.0",
|
19
21
|
"rollup-plugin-typescript2": "^0.29.0",
|
20
22
|
"typescript": "~5.4.5"
|
@@ -30,6 +32,9 @@
|
|
30
32
|
},
|
31
33
|
"homepage": "https://github.com/cypress-io/cypress/tree/develop/npm/mount-utils#readme",
|
32
34
|
"bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
|
35
|
+
"lint-staged": {
|
36
|
+
"**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
|
37
|
+
},
|
33
38
|
"publishConfig": {
|
34
39
|
"access": "public"
|
35
40
|
},
|
package/mount-utils/package.json
CHANGED
@@ -7,14 +7,16 @@
|
|
7
7
|
"build": "tsc || echo 'built, with type errors'",
|
8
8
|
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
9
9
|
"check-ts": "tsc --noEmit",
|
10
|
-
"lint": "eslint
|
10
|
+
"lint": "eslint",
|
11
11
|
"watch": "tsc -w"
|
12
12
|
},
|
13
13
|
"dependencies": {},
|
14
14
|
"devDependencies": {
|
15
|
+
"@packages/eslint-config": "0.0.0-development",
|
15
16
|
"@rollup/plugin-commonjs": "^17.1.0",
|
16
17
|
"@rollup/plugin-node-resolve": "^11.1.1",
|
17
|
-
"
|
18
|
+
"eslint": "^9.31.0",
|
19
|
+
"rollup": "3.29.5",
|
18
20
|
"rollup-plugin-dts": "5.0.0",
|
19
21
|
"rollup-plugin-typescript2": "^0.29.0",
|
20
22
|
"typescript": "~5.4.5"
|
@@ -30,6 +32,9 @@
|
|
30
32
|
},
|
31
33
|
"homepage": "https://github.com/cypress-io/cypress/tree/develop/npm/mount-utils#readme",
|
32
34
|
"bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
|
35
|
+
"lint-staged": {
|
36
|
+
"**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
|
37
|
+
},
|
33
38
|
"publishConfig": {
|
34
39
|
"access": "public"
|
35
40
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "
|
3
|
+
"version": "15.1.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -32,7 +32,6 @@
|
|
32
32
|
"extract-zip": "2.0.1",
|
33
33
|
"figures": "^3.2.0",
|
34
34
|
"fs-extra": "^9.1.0",
|
35
|
-
"getos": "^3.2.1",
|
36
35
|
"hasha": "5.2.2",
|
37
36
|
"is-installed-globally": "~0.4.0",
|
38
37
|
"lazy-ass": "^1.6.0",
|
@@ -47,7 +46,8 @@
|
|
47
46
|
"request-progress": "^3.0.0",
|
48
47
|
"semver": "^7.7.1",
|
49
48
|
"supports-color": "^8.1.1",
|
50
|
-
"
|
49
|
+
"systeminformation": "5.27.7",
|
50
|
+
"tmp": "~0.2.4",
|
51
51
|
"tree-kill": "1.2.2",
|
52
52
|
"untildify": "^4.0.0",
|
53
53
|
"yauzl": "^2.10.0"
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"cypress": "bin/cypress"
|
69
69
|
},
|
70
70
|
"engines": {
|
71
|
-
"node": "^
|
71
|
+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
|
72
72
|
},
|
73
73
|
"types": "types",
|
74
74
|
"exports": {
|
@@ -77,6 +77,9 @@
|
|
77
77
|
"import": "./index.mjs",
|
78
78
|
"require": "./index.js"
|
79
79
|
},
|
80
|
+
"./types/net-stubbing": {
|
81
|
+
"types": "./types/net-stubbing.d.ts"
|
82
|
+
},
|
80
83
|
"./vue": {
|
81
84
|
"types": "./vue/dist/index.d.ts",
|
82
85
|
"import": "./vue/dist/cypress-vue.esm-bundler.js",
|
@@ -124,8 +127,8 @@
|
|
124
127
|
},
|
125
128
|
"buildInfo": {
|
126
129
|
"commitBranch": "develop",
|
127
|
-
"commitSha": "
|
128
|
-
"commitDate": "2025-
|
130
|
+
"commitSha": "591de461fd8ca9a56af617845b2c55b5b23ebf29",
|
131
|
+
"commitDate": "2025-09-02T18:31:16.000Z",
|
129
132
|
"stable": true
|
130
133
|
},
|
131
134
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
package/react/package.json
CHANGED
@@ -18,8 +18,8 @@
|
|
18
18
|
"devDependencies": {
|
19
19
|
"@cypress/mount-utils": "0.0.0-development",
|
20
20
|
"@types/semver": "7.5.8",
|
21
|
-
"@vitejs/plugin-react": "4.
|
22
|
-
"axios": "1.
|
21
|
+
"@vitejs/plugin-react": "4.6.0",
|
22
|
+
"axios": "1.8.2",
|
23
23
|
"cypress": "0.0.0-development",
|
24
24
|
"prop-types": "15.8.1",
|
25
25
|
"react": "18.3.1",
|
@@ -28,8 +28,8 @@
|
|
28
28
|
"react-router-dom": "6.28.0",
|
29
29
|
"semver": "^7.7.1",
|
30
30
|
"typescript": "~5.4.5",
|
31
|
-
"vite": "
|
32
|
-
"vite-plugin-require-transform": "1.0.
|
31
|
+
"vite": "6.3.5",
|
32
|
+
"vite-plugin-require-transform": "1.0.21"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|
35
35
|
"@types/react": "^18 || ^19",
|
package/react/react/package.json
CHANGED
@@ -18,8 +18,8 @@
|
|
18
18
|
"devDependencies": {
|
19
19
|
"@cypress/mount-utils": "0.0.0-development",
|
20
20
|
"@types/semver": "7.5.8",
|
21
|
-
"@vitejs/plugin-react": "4.
|
22
|
-
"axios": "1.
|
21
|
+
"@vitejs/plugin-react": "4.6.0",
|
22
|
+
"axios": "1.8.2",
|
23
23
|
"cypress": "0.0.0-development",
|
24
24
|
"prop-types": "15.8.1",
|
25
25
|
"react": "18.3.1",
|
@@ -28,8 +28,8 @@
|
|
28
28
|
"react-router-dom": "6.28.0",
|
29
29
|
"semver": "^7.7.1",
|
30
30
|
"typescript": "~5.4.5",
|
31
|
-
"vite": "
|
32
|
-
"vite-plugin-require-transform": "1.0.
|
31
|
+
"vite": "6.3.5",
|
32
|
+
"vite-plugin-require-transform": "1.0.21"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|
35
35
|
"@types/react": "^18 || ^19",
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare namespace Cypress {
|
2
|
+
type SupportedNamedKey = 'ArrowDown' |
|
3
|
+
'ArrowLeft' |
|
4
|
+
'ArrowRight' |
|
5
|
+
'ArrowUp' |
|
6
|
+
'End' |
|
7
|
+
'Home' |
|
8
|
+
'PageDown' |
|
9
|
+
'PageUp' |
|
10
|
+
'Space' |
|
11
|
+
'Enter' |
|
12
|
+
'Tab' |
|
13
|
+
'Backspace' |
|
14
|
+
'Delete' |
|
15
|
+
'Insert'
|
16
|
+
|
17
|
+
type SupportedKey = SupportedNamedKey | string | number
|
18
|
+
}
|
package/types/cypress.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/// <reference path="./cypress-npm-api.d.ts" />
|
3
3
|
/// <reference path="./cypress-eventemitter.d.ts" />
|
4
4
|
/// <reference path="./cypress-type-helpers.d.ts" />
|
5
|
-
|
5
|
+
/// <reference path="./cypress-automation.d.ts" />
|
6
6
|
declare namespace Cypress {
|
7
7
|
type FileContents = string | any[] | object
|
8
8
|
type HistoryDirection = 'back' | 'forward'
|
@@ -684,7 +684,20 @@ declare namespace Cypress {
|
|
684
684
|
Keyboard: {
|
685
685
|
defaults(options: Partial<KeyboardDefaultsOptions>): void
|
686
686
|
Keys: {
|
687
|
+
DOWN: 'ArrowDown',
|
688
|
+
LEFT: 'ArrowLeft',
|
689
|
+
RIGHT: 'ArrowRight',
|
690
|
+
UP: 'ArrowUp',
|
691
|
+
END: 'End',
|
692
|
+
HOME: 'Home',
|
693
|
+
PAGEDOWN: 'PageDown',
|
694
|
+
PAGEUP: 'PageUp',
|
695
|
+
ENTER: 'Enter',
|
687
696
|
TAB: 'Tab',
|
697
|
+
BACKSPACE: 'Backspace',
|
698
|
+
SPACE: 'Space',
|
699
|
+
DELETE: 'Delete',
|
700
|
+
INSERT: 'Insert',
|
688
701
|
},
|
689
702
|
}
|
690
703
|
|
@@ -696,10 +709,20 @@ declare namespace Cypress {
|
|
696
709
|
}
|
697
710
|
|
698
711
|
/**
|
699
|
-
*
|
712
|
+
* Element selector logic used for generating selectors for elements
|
713
|
+
* in the Selector Playground and Cypress Studio.
|
714
|
+
* @see https://on.cypress.io/element-selector-api
|
715
|
+
*/
|
716
|
+
ElementSelector: {
|
717
|
+
defaults(options: Partial<ElementSelectorDefaultsOptions>): void
|
718
|
+
}
|
719
|
+
|
720
|
+
/**
|
721
|
+
* @deprecated Use ElementSelector instead
|
722
|
+
* @see https://on.cypress.io/element-selector-api
|
700
723
|
*/
|
701
724
|
SelectorPlayground: {
|
702
|
-
defaults(options: Partial<
|
725
|
+
defaults(options: Partial<ElementSelectorDefaultsOptions>): void
|
703
726
|
getSelector($el: JQuery): JQuery.Selector
|
704
727
|
}
|
705
728
|
|
@@ -1755,7 +1778,7 @@ declare namespace Cypress {
|
|
1755
1778
|
* cy.press(Cypress.Keyboard.Keys.TAB) // dispatches a keydown and press event to the browser, followed by a keyup event.
|
1756
1779
|
* @see https://on.cypress.io/press
|
1757
1780
|
*/
|
1758
|
-
press(key:
|
1781
|
+
press(key: SupportedKey, options?: Partial<Loggable & Timeoutable>): Chainable<null>
|
1759
1782
|
|
1760
1783
|
/**
|
1761
1784
|
* Get the immediately preceding sibling of each element in a set of the elements.
|
@@ -2126,12 +2149,6 @@ declare namespace Cypress {
|
|
2126
2149
|
* expect(o.toString).to.have.been.calledOnce
|
2127
2150
|
*/
|
2128
2151
|
stub<T>(obj: T, method: keyof T): Agent<sinon.SinonStub>
|
2129
|
-
/**
|
2130
|
-
* Stubs a method on an object
|
2131
|
-
*
|
2132
|
-
* @deprecated Use `cy.stub(object, name).callsFake(fn)` instead
|
2133
|
-
*/
|
2134
|
-
stub<T>(obj: T, method: keyof T, func: (...args: any[]) => any): Agent<sinon.SinonStub>
|
2135
2152
|
|
2136
2153
|
/**
|
2137
2154
|
* Submit a form.
|
@@ -2977,7 +2994,7 @@ declare namespace Cypress {
|
|
2977
2994
|
*/
|
2978
2995
|
requestTimeout: number
|
2979
2996
|
/**
|
2980
|
-
* Time, in milliseconds, to wait
|
2997
|
+
* Time, in milliseconds, to wait for a response in a [cy.request()](https://on.cypress.io/request), [cy.wait()](https://on.cypress.io/wait), [cy.fixture()](https://on.cypress.io/fixture), [cy.getCookie()](https://on.cypress.io/getcookie), [cy.getCookies()](https://on.cypress.io/getcookies), [cy.setCookie()](https://on.cypress.io/setcookie), [cy.clearCookie()](https://on.cypress.io/clearcookie), [cy.clearCookies()](https://on.cypress.io/clearcookies), and [cy.screenshot()](https://on.cypress.io/screenshot) commands
|
2981
2998
|
* @default 30000
|
2982
2999
|
*/
|
2983
3000
|
responseTimeout: number
|
@@ -3720,9 +3737,18 @@ declare namespace Cypress {
|
|
3720
3737
|
screenshotOnRunFailure: boolean
|
3721
3738
|
}
|
3722
3739
|
|
3723
|
-
|
3724
|
-
|
3725
|
-
|
3740
|
+
type SelectorPriority =
|
3741
|
+
| `attribute:${string}`
|
3742
|
+
| 'attributes'
|
3743
|
+
| 'class'
|
3744
|
+
| `data-${string}`
|
3745
|
+
| 'id'
|
3746
|
+
| 'name'
|
3747
|
+
| 'nth-child'
|
3748
|
+
| 'tag'
|
3749
|
+
|
3750
|
+
interface ElementSelectorDefaultsOptions {
|
3751
|
+
selectorPriority?: SelectorPriority[]
|
3726
3752
|
}
|
3727
3753
|
|
3728
3754
|
interface ScrollToOptions extends Loggable, Timeoutable {
|
package/types/index.d.ts
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
// Mike Woudenberg <https://github.com/mikewoudenberg>
|
5
5
|
// Robbert van Markus <https://github.com/rvanmarkus>
|
6
6
|
// Nicholas Boll <https://github.com/nicholasboll>
|
7
|
-
// TypeScript Version:
|
7
|
+
// TypeScript Version: 5.0
|
8
8
|
// Updated by the Cypress team: https://www.cypress.io/about/
|
9
9
|
|
10
10
|
/// <reference path="./cy-blob-util.d.ts" />
|
@@ -44,6 +44,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
44
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
46
46
|
***************************************************************************** */
|
47
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
48
|
+
|
47
49
|
|
48
50
|
function __rest(s, e) {
|
49
51
|
var t = {};
|
@@ -24,6 +24,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
24
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
25
25
|
PERFORMANCE OF THIS SOFTWARE.
|
26
26
|
***************************************************************************** */
|
27
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
28
|
+
|
27
29
|
|
28
30
|
function __rest(s, e) {
|
29
31
|
var t = {};
|
package/vue/package.json
CHANGED
@@ -16,18 +16,18 @@
|
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
18
|
"@cypress/mount-utils": "0.0.0-development",
|
19
|
-
"@vitejs/plugin-vue": "
|
19
|
+
"@vitejs/plugin-vue": "6.0.0",
|
20
20
|
"@vue/compiler-sfc": "3.2.47",
|
21
21
|
"@vue/test-utils": "2.4.6",
|
22
|
-
"axios": "0.
|
22
|
+
"axios": "0.30.0",
|
23
23
|
"cypress": "0.0.0-development",
|
24
24
|
"debug": "^4.3.4",
|
25
25
|
"globby": "^11.0.1",
|
26
26
|
"tailwindcss": "1.1.4",
|
27
27
|
"typescript": "~5.4.5",
|
28
|
-
"vite": "
|
28
|
+
"vite": "6.3.5",
|
29
29
|
"vue": "3.2.47",
|
30
|
-
"vue-i18n": "9.
|
30
|
+
"vue-i18n": "9.14.5",
|
31
31
|
"vue-router": "^4.0.0",
|
32
32
|
"vue-tsc": "^2.0.19",
|
33
33
|
"vuex": "^4.0.0"
|
@@ -44,6 +44,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
44
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
46
46
|
***************************************************************************** */
|
47
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
48
|
+
|
47
49
|
|
48
50
|
function __rest(s, e) {
|
49
51
|
var t = {};
|
@@ -24,6 +24,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
24
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
25
25
|
PERFORMANCE OF THIS SOFTWARE.
|
26
26
|
***************************************************************************** */
|
27
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
28
|
+
|
27
29
|
|
28
30
|
function __rest(s, e) {
|
29
31
|
var t = {};
|
package/vue/vue/package.json
CHANGED
@@ -16,18 +16,18 @@
|
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
18
|
"@cypress/mount-utils": "0.0.0-development",
|
19
|
-
"@vitejs/plugin-vue": "
|
19
|
+
"@vitejs/plugin-vue": "6.0.0",
|
20
20
|
"@vue/compiler-sfc": "3.2.47",
|
21
21
|
"@vue/test-utils": "2.4.6",
|
22
|
-
"axios": "0.
|
22
|
+
"axios": "0.30.0",
|
23
23
|
"cypress": "0.0.0-development",
|
24
24
|
"debug": "^4.3.4",
|
25
25
|
"globby": "^11.0.1",
|
26
26
|
"tailwindcss": "1.1.4",
|
27
27
|
"typescript": "~5.4.5",
|
28
|
-
"vite": "
|
28
|
+
"vite": "6.3.5",
|
29
29
|
"vue": "3.2.47",
|
30
|
-
"vue-i18n": "9.
|
30
|
+
"vue-i18n": "9.14.5",
|
31
31
|
"vue-router": "^4.0.0",
|
32
32
|
"vue-tsc": "^2.0.19",
|
33
33
|
"vuex": "^4.0.0"
|