cypress 10.0.3 → 10.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/exec/spawn.js +9 -2
- package/lib/tasks/download.js +10 -11
- package/lib/tasks/install.js +7 -6
- package/lib/util.js +54 -10
- package/mount-utils/CHANGELOG.md +19 -0
- package/mount-utils/package.json +0 -1
- package/package.json +3 -8
- package/react/CHANGELOG.md +44 -0
- package/react/dist/cypress-react.browser.js +1 -1
- package/react/dist/cypress-react.cjs.js +1 -1
- package/react/dist/cypress-react.esm-bundler.js +1 -1
- package/react/package.json +1 -3
- package/types/cypress.d.ts +2 -2
- package/vue/CHANGELOG.md +42 -0
- package/vue/dist/cypress-vue.cjs.js +1 -1
- package/vue/dist/cypress-vue.esm-bundler.js +1 -1
- package/vue/package.json +0 -1
- package/vue2/CHANGELOG.md +32 -0
- package/vue2/dist/cypress-vue2.browser.js +1 -1
- package/vue2/dist/cypress-vue2.cjs.js +1 -1
- package/vue2/dist/cypress-vue2.esm-bundler.js +1 -1
- package/vue2/package.json +1 -3
package/lib/exec/spawn.js
CHANGED
@@ -36,8 +36,15 @@ const isRenderWorkerRe = /\.RenderWorker-/; // Chromium (which Electron uses) al
|
|
36
36
|
// Failure to connect is expected and normal here, but users frequently misidentify these errors as the cause of their problems.
|
37
37
|
// https://github.com/cypress-io/cypress/issues/19299
|
38
38
|
|
39
|
-
const isDbusWarning = /Failed to connect to the bus:/;
|
40
|
-
|
39
|
+
const isDbusWarning = /Failed to connect to the bus:/; // 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
|
+
|
46
|
+
const isCertVerifyProcBuiltin = /(^\[.*ERROR:cert_verify_proc_builtin\.cc|^----- Certificate i=0 \(OU=Cypress Proxy|^ERROR: No matching issuer found$)/;
|
47
|
+
const GARBAGE_WARNINGS = [isXlibOrLibudevRe, isHighSierraWarningRe, isRenderWorkerRe, isDbusWarning, isCertVerifyProcBuiltin];
|
41
48
|
|
42
49
|
const isGarbageLineWarning = str => {
|
43
50
|
return _.some(GARBAGE_WARNINGS, re => {
|
package/lib/tasks/download.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
const arch = require('arch');
|
4
|
-
|
5
3
|
const la = require('lazy-ass');
|
6
4
|
|
7
5
|
const is = require('check-more-types');
|
@@ -76,29 +74,29 @@ const getCA = () => {
|
|
76
74
|
});
|
77
75
|
};
|
78
76
|
|
79
|
-
const prepend = urlPath => {
|
77
|
+
const prepend = (arch, urlPath) => {
|
80
78
|
const endpoint = url.resolve(getBaseUrl(), urlPath);
|
81
79
|
const platform = os.platform();
|
82
80
|
const pathTemplate = util.getEnv('CYPRESS_DOWNLOAD_PATH_TEMPLATE', true);
|
83
|
-
return pathTemplate ? pathTemplate.replace(/\\?\$\{endpoint\}/, endpoint).replace(/\\?\$\{platform\}/, platform).replace(/\\?\$\{arch\}/, arch
|
81
|
+
return pathTemplate ? pathTemplate.replace(/\\?\$\{endpoint\}/, endpoint).replace(/\\?\$\{platform\}/, platform).replace(/\\?\$\{arch\}/, arch) : `${endpoint}?platform=${platform}&arch=${arch}`;
|
84
82
|
};
|
85
83
|
|
86
|
-
const getUrl = version => {
|
84
|
+
const getUrl = (arch, version) => {
|
87
85
|
if (is.url(version)) {
|
88
86
|
debug('version is already an url', version);
|
89
87
|
return version;
|
90
88
|
}
|
91
89
|
|
92
|
-
return version ? prepend(`desktop/${version}`) : prepend('desktop');
|
90
|
+
return version ? prepend(arch, `desktop/${version}`) : prepend(arch, 'desktop');
|
93
91
|
};
|
94
92
|
|
95
93
|
const statusMessage = err => {
|
96
94
|
return err.statusCode ? [err.statusCode, err.statusMessage].join(' - ') : err.toString();
|
97
95
|
};
|
98
96
|
|
99
|
-
const prettyDownloadErr = (err,
|
97
|
+
const prettyDownloadErr = (err, url) => {
|
100
98
|
const msg = stripIndent`
|
101
|
-
URL: ${
|
99
|
+
URL: ${url}
|
102
100
|
${statusMessage(err)}
|
103
101
|
`;
|
104
102
|
debug(msg);
|
@@ -307,7 +305,7 @@ const downloadFromUrl = ({
|
|
307
305
|
*/
|
308
306
|
|
309
307
|
|
310
|
-
const start = opts => {
|
308
|
+
const start = async opts => {
|
311
309
|
let {
|
312
310
|
version,
|
313
311
|
downloadDestination,
|
@@ -327,7 +325,8 @@ const start = opts => {
|
|
327
325
|
};
|
328
326
|
}
|
329
327
|
|
330
|
-
const
|
328
|
+
const arch = await util.getRealArch();
|
329
|
+
const versionUrl = getUrl(arch, version);
|
331
330
|
progress.throttle = 100;
|
332
331
|
debug('needed Cypress version: %s', version);
|
333
332
|
debug('source url %s', versionUrl);
|
@@ -347,7 +346,7 @@ const start = opts => {
|
|
347
346
|
} : {})
|
348
347
|
});
|
349
348
|
}).catch(err => {
|
350
|
-
return prettyDownloadErr(err,
|
349
|
+
return prettyDownloadErr(err, versionUrl);
|
351
350
|
});
|
352
351
|
};
|
353
352
|
|
package/lib/tasks/install.js
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
const _ = require('lodash');
|
4
4
|
|
5
|
-
const arch = require('arch');
|
6
|
-
|
7
5
|
const os = require('os');
|
8
6
|
|
9
7
|
const path = require('path');
|
@@ -48,11 +46,11 @@ const {
|
|
48
46
|
version
|
49
47
|
} = require('../../package.json');
|
50
48
|
|
51
|
-
function _getBinaryUrlFromBuildInfo({
|
49
|
+
function _getBinaryUrlFromBuildInfo(arch, {
|
52
50
|
commitSha,
|
53
51
|
commitBranch
|
54
52
|
}) {
|
55
|
-
return `https://cdn.cypress.io/beta/binary/${version}/${os.platform()}-${arch
|
53
|
+
return `https://cdn.cypress.io/beta/binary/${version}/${os.platform()}-${arch}/${commitBranch}-${commitSha}/cypress.zip`;
|
56
54
|
}
|
57
55
|
|
58
56
|
const alreadyInstalledMsg = () => {
|
@@ -154,7 +152,7 @@ const downloadAndUnzip = ({
|
|
154
152
|
|
155
153
|
const validateOS = () => {
|
156
154
|
return util.getPlatformInfo().then(platformInfo => {
|
157
|
-
return platformInfo.match(/(
|
155
|
+
return platformInfo.match(/(win32-x64|linux-x64|linux-arm64|darwin-x64|darwin-arm64)/);
|
158
156
|
});
|
159
157
|
};
|
160
158
|
/**
|
@@ -164,6 +162,7 @@ const validateOS = () => {
|
|
164
162
|
|
165
163
|
|
166
164
|
function getVersionOverride({
|
165
|
+
arch,
|
167
166
|
envVarVersion,
|
168
167
|
buildInfo
|
169
168
|
}) {
|
@@ -184,7 +183,7 @@ function getVersionOverride({
|
|
184
183
|
* Commit Timestamp: ${buildInfo.commitDate}
|
185
184
|
`));
|
186
185
|
logger.log();
|
187
|
-
return _getBinaryUrlFromBuildInfo(buildInfo);
|
186
|
+
return _getBinaryUrlFromBuildInfo(arch, buildInfo);
|
188
187
|
}
|
189
188
|
}
|
190
189
|
|
@@ -226,7 +225,9 @@ const start = async (options = {}) => {
|
|
226
225
|
}
|
227
226
|
|
228
227
|
const pkgVersion = util.pkgVersion();
|
228
|
+
const arch = await util.getRealArch();
|
229
229
|
const versionOverride = getVersionOverride({
|
230
|
+
arch,
|
230
231
|
envVarVersion,
|
231
232
|
buildInfo: options.buildInfo
|
232
233
|
});
|
package/lib/util.js
CHANGED
@@ -433,19 +433,63 @@ const util = {
|
|
433
433
|
});
|
434
434
|
},
|
435
435
|
|
436
|
-
getPlatformInfo() {
|
437
|
-
|
438
|
-
|
436
|
+
async getPlatformInfo() {
|
437
|
+
const [version, osArch] = await Promise.all([util.getOsVersionAsync(), this.getRealArch()]);
|
438
|
+
return stripIndent`
|
439
|
+
Platform: ${os.platform()}-${osArch} (${version})
|
440
|
+
Cypress Version: ${util.pkgVersion()}
|
441
|
+
`;
|
442
|
+
},
|
443
|
+
|
444
|
+
_cachedArch: undefined,
|
439
445
|
|
440
|
-
|
441
|
-
|
446
|
+
/**
|
447
|
+
* Attempt to return the real system arch (not process.arch, which is only the Node binary's arch)
|
448
|
+
*/
|
449
|
+
async getRealArch() {
|
450
|
+
if (this._cachedArch) return this._cachedArch;
|
451
|
+
|
452
|
+
async function _getRealArch() {
|
453
|
+
const osPlatform = os.platform(); // eslint-disable-next-line no-restricted-syntax
|
454
|
+
|
455
|
+
const osArch = os.arch();
|
456
|
+
debug('detecting arch %o', {
|
457
|
+
osPlatform,
|
458
|
+
osArch
|
459
|
+
});
|
460
|
+
if (osArch === 'arm64') return 'arm64';
|
461
|
+
|
462
|
+
if (osPlatform === 'darwin') {
|
463
|
+
// could possibly be x64 node on arm64 darwin, check if we are being translated by Rosetta
|
464
|
+
// https://stackoverflow.com/a/65347893/3474615
|
465
|
+
const {
|
466
|
+
stdout
|
467
|
+
} = await execa('sysctl', ['-n', 'sysctl.proc_translated']).catch(() => '');
|
468
|
+
debug('rosetta check result: %o', {
|
469
|
+
stdout
|
470
|
+
});
|
471
|
+
if (stdout === '1') return 'arm64';
|
442
472
|
}
|
443
473
|
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
474
|
+
if (osPlatform === 'linux') {
|
475
|
+
// could possibly be x64 node on arm64 linux, check the "machine hardware name"
|
476
|
+
// list of names for reference: https://stackoverflow.com/a/45125525/3474615
|
477
|
+
const {
|
478
|
+
stdout
|
479
|
+
} = await execa('uname', ['-m']).catch(() => '');
|
480
|
+
debug('arm uname -m result: %o ', {
|
481
|
+
stdout
|
482
|
+
});
|
483
|
+
if (['aarch64_be', 'aarch64', 'armv8b', 'armv8l'].includes(stdout)) return 'arm64';
|
484
|
+
} // eslint-disable-next-line no-restricted-syntax
|
485
|
+
|
486
|
+
|
487
|
+
const pkgArch = arch();
|
488
|
+
if (pkgArch === 'x86') return 'ia32';
|
489
|
+
return pkgArch;
|
490
|
+
}
|
491
|
+
|
492
|
+
return this._cachedArch = await _getRealArch();
|
449
493
|
},
|
450
494
|
|
451
495
|
// attention:
|
package/mount-utils/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# [@cypress/mount-utils-v2.0.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v1.0.2...@cypress/mount-utils-v2.0.0) (2022-06-13)
|
2
|
+
|
3
|
+
|
4
|
+
### chore
|
5
|
+
|
6
|
+
* prep npm packages for use with Cypress v10 ([b924d08](https://github.com/cypress-io/cypress/commit/b924d086ee2e2ccc93303731e001b2c9e9d0af17))
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* embedding mount into the cypress binary (real dependency) ([#20930](https://github.com/cypress-io/cypress/issues/20930)) ([3fe5f50](https://github.com/cypress-io/cypress/commit/3fe5f50e7832a4bfb20df8e71648434eb7f263d5))
|
12
|
+
* merging / delegating remote queries to cloud schema ([#17875](https://github.com/cypress-io/cypress/issues/17875)) ([94541d4](https://github.com/cypress-io/cypress/commit/94541d4f18591e8fa4b8702c39e92b0a7238aa5d))
|
13
|
+
* swap the #__cy_root id selector to become data-cy-root for component mounting ([#20951](https://github.com/cypress-io/cypress/issues/20951)) ([0e7b555](https://github.com/cypress-io/cypress/commit/0e7b555f93fb403f431c5de4a07ae7ad6ac89ba2))
|
14
|
+
|
15
|
+
|
16
|
+
### BREAKING CHANGES
|
17
|
+
|
18
|
+
* new version of packages for Cypress v10
|
19
|
+
|
1
20
|
# [@cypress/mount-utils-v1.0.2](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v1.0.1...@cypress/mount-utils-v1.0.2) (2021-04-30)
|
2
21
|
|
3
22
|
|
package/mount-utils/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "10.0
|
3
|
+
"version": "10.3.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -94,15 +94,10 @@
|
|
94
94
|
"require": "./mount-utils/dist/index.js"
|
95
95
|
}
|
96
96
|
},
|
97
|
-
"workspaces": {
|
98
|
-
"nohoist": [
|
99
|
-
"@types/*"
|
100
|
-
]
|
101
|
-
},
|
102
97
|
"buildInfo": {
|
103
98
|
"commitBranch": "develop",
|
104
|
-
"commitSha": "
|
105
|
-
"commitDate": "2022-06-
|
99
|
+
"commitSha": "f902b968970f1b6160f07215b881dab6c39c21f1",
|
100
|
+
"commitDate": "2022-06-28T16:27:27.000Z",
|
106
101
|
"stable": true
|
107
102
|
},
|
108
103
|
"description": "Cypress.io end to end testing tool",
|
package/react/CHANGELOG.md
CHANGED
@@ -1,3 +1,47 @@
|
|
1
|
+
# [@cypress/react-v6.0.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.5...@cypress/react-v6.0.0) (2022-06-13)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* open browser at correct time during lifecycle ([#19572](https://github.com/cypress-io/cypress/issues/19572)) ([bfc032a](https://github.com/cypress-io/cypress/commit/bfc032a2d42d0726b8a4a86aab1584bd4e69c3f0))
|
7
|
+
* scaffold correct config file ([#19776](https://github.com/cypress-io/cypress/issues/19776)) ([8f32960](https://github.com/cypress-io/cypress/commit/8f32960ef803f539f065d41f01fff33bfe33ed5d))
|
8
|
+
* scope config to current testing type ([#20677](https://github.com/cypress-io/cypress/issues/20677)) ([61f7cfc](https://github.com/cypress-io/cypress/commit/61f7cfc59284a2938e0a1c15d74ee75215ba5f8b))
|
9
|
+
* terminal error message for non migrated config ([#21467](https://github.com/cypress-io/cypress/issues/21467)) ([3274da7](https://github.com/cypress-io/cypress/commit/3274da7842f5ef1ddad62b1c630d0ff9120e4289))
|
10
|
+
* update scaffold template to use correct path ([#20047](https://github.com/cypress-io/cypress/issues/20047)) ([6e80359](https://github.com/cypress-io/cypress/commit/6e803597a379222cf936e5977c8314d693ee1912))
|
11
|
+
* wire up scaffolded indexHtml to dev servers ([#20453](https://github.com/cypress-io/cypress/issues/20453)) ([3a8797e](https://github.com/cypress-io/cypress/commit/3a8797e54db9fd0ef93a14ddc71c138ba8251e53))
|
12
|
+
* **react:** link to rerender example ([#19020](https://github.com/cypress-io/cypress/issues/19020)) ([552d3a1](https://github.com/cypress-io/cypress/commit/552d3a1c0073dae0bd1da0fc9fa8d140ec4f38dc))
|
13
|
+
* **unified-desktop-gui branch:** initial installation on windows ([#18247](https://github.com/cypress-io/cypress/issues/18247)) ([8614e97](https://github.com/cypress-io/cypress/commit/8614e978029bcbf7155b7ae98ac54feb11f2e7f3))
|
14
|
+
* **unify:** improve dev server config ergonomics ([#19957](https://github.com/cypress-io/cypress/issues/19957)) ([6a402a7](https://github.com/cypress-io/cypress/commit/6a402a70767f53e4c5ea54490a03a9983b2be10f))
|
15
|
+
|
16
|
+
|
17
|
+
### chore
|
18
|
+
|
19
|
+
* prep npm packages for use with Cypress v10 ([b924d08](https://github.com/cypress-io/cypress/commit/b924d086ee2e2ccc93303731e001b2c9e9d0af17))
|
20
|
+
|
21
|
+
|
22
|
+
### Features
|
23
|
+
|
24
|
+
* add devServer to config file ([#18962](https://github.com/cypress-io/cypress/issues/18962)) ([2573375](https://github.com/cypress-io/cypress/commit/2573375b5b6616efd2d213a94cd55fd8e0385864))
|
25
|
+
* Add typings for new devServer config ([#18797](https://github.com/cypress-io/cypress/issues/18797)) ([e018a14](https://github.com/cypress-io/cypress/commit/e018a14c211bfcbdc4568a9a737f14f5c1686e35))
|
26
|
+
* Deprecate run-ct / open-ct, and update all examples to use --ct instead ([#18422](https://github.com/cypress-io/cypress/issues/18422)) ([196e8f6](https://github.com/cypress-io/cypress/commit/196e8f62cc6d27974f235945cb5700624b3dae41))
|
27
|
+
* embedding mount into the cypress binary (real dependency) ([#20930](https://github.com/cypress-io/cypress/issues/20930)) ([3fe5f50](https://github.com/cypress-io/cypress/commit/3fe5f50e7832a4bfb20df8e71648434eb7f263d5))
|
28
|
+
* index.html configurability and storybook support ([#18242](https://github.com/cypress-io/cypress/issues/18242)) ([745b3ac](https://github.com/cypress-io/cypress/commit/745b3ac4518302983522daedf817623334feae5b))
|
29
|
+
* ProjectLifecycleManager & general launchpad cleanup ([#19347](https://github.com/cypress-io/cypress/issues/19347)) ([4626f74](https://github.com/cypress-io/cypress/commit/4626f7481c9904fec484aa167a02e0197a3095c4))
|
30
|
+
* remove testFiles reference ([#20565](https://github.com/cypress-io/cypress/issues/20565)) ([5670344](https://github.com/cypress-io/cypress/commit/567034459089d9d53dfab5556cb9369fb335c3db))
|
31
|
+
* support specPattern, deprecate integrationFolder and componentFolder ([#19319](https://github.com/cypress-io/cypress/issues/19319)) ([792980a](https://github.com/cypress-io/cypress/commit/792980ac12746ef47b9c944ebe4c6c353a187ab2))
|
32
|
+
* swap the #__cy_root id selector to become data-cy-root for component mounting ([#20951](https://github.com/cypress-io/cypress/issues/20951)) ([0e7b555](https://github.com/cypress-io/cypress/commit/0e7b555f93fb403f431c5de4a07ae7ad6ac89ba2))
|
33
|
+
* update on-links ([#19235](https://github.com/cypress-io/cypress/issues/19235)) ([cc2d734](https://github.com/cypress-io/cypress/commit/cc2d7348185e2a090c60d92d9319ab460d8c7827))
|
34
|
+
* Use .config files ([#18578](https://github.com/cypress-io/cypress/issues/18578)) ([081dd19](https://github.com/cypress-io/cypress/commit/081dd19cc6da3da229a7af9c84f62730c85a5cd6))
|
35
|
+
* use devServer instad of startDevServer ([#20092](https://github.com/cypress-io/cypress/issues/20092)) ([8a6768f](https://github.com/cypress-io/cypress/commit/8a6768fee6f46b908c5a9daf23da8b804a6c627f))
|
36
|
+
* Use plugins on config files ([#18798](https://github.com/cypress-io/cypress/issues/18798)) ([bb8251b](https://github.com/cypress-io/cypress/commit/bb8251b752ac44f1184f9160194cf12d41fc867f))
|
37
|
+
* use supportFile by testingType ([#19364](https://github.com/cypress-io/cypress/issues/19364)) ([0366d4f](https://github.com/cypress-io/cypress/commit/0366d4fa8971e5e5189c6fd6450cc3c8d72dcfe1))
|
38
|
+
* validate specPattern root level ([#19980](https://github.com/cypress-io/cypress/issues/19980)) ([5d52758](https://github.com/cypress-io/cypress/commit/5d52758d82c47033803c69c7858fc786a900faaf))
|
39
|
+
|
40
|
+
|
41
|
+
### BREAKING CHANGES
|
42
|
+
|
43
|
+
* new version of packages for Cypress v10
|
44
|
+
|
1
45
|
# [@cypress/react-v5.12.5](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.4...@cypress/react-v5.12.5) (2022-05-17)
|
2
46
|
|
3
47
|
|
@@ -29,7 +29,7 @@ var CypressReact = (function (exports, React, ReactDOM) {
|
|
29
29
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
30
30
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
31
31
|
|
32
|
-
|
32
|
+
/******************************************************************************
|
33
33
|
Copyright (c) Microsoft Corporation.
|
34
34
|
|
35
35
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -33,7 +33,7 @@ function _interopNamespace(e) {
|
|
33
33
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
34
34
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
35
35
|
|
36
|
-
|
36
|
+
/******************************************************************************
|
37
37
|
Copyright (c) Microsoft Corporation.
|
38
38
|
|
39
39
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import * as React from 'react';
|
9
9
|
import * as ReactDOM from 'react-dom';
|
10
10
|
|
11
|
-
|
11
|
+
/******************************************************************************
|
12
12
|
Copyright (c) Microsoft Corporation.
|
13
13
|
|
14
14
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/react/package.json
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
"name": "@cypress/react",
|
3
3
|
"version": "0.0.0-development",
|
4
4
|
"description": "Test React components using Cypress",
|
5
|
-
"private": true,
|
6
5
|
"main": "dist/cypress-react.cjs.js",
|
7
6
|
"scripts": {
|
8
7
|
"build": "rimraf dist && rollup -c rollup.config.js",
|
@@ -44,8 +43,7 @@
|
|
44
43
|
"react-dom": "^=16.x || ^=17.x"
|
45
44
|
},
|
46
45
|
"files": [
|
47
|
-
"dist"
|
48
|
-
"support"
|
46
|
+
"dist"
|
49
47
|
],
|
50
48
|
"types": "dist/index.d.ts",
|
51
49
|
"license": "MIT",
|
package/types/cypress.d.ts
CHANGED
@@ -3003,7 +3003,7 @@ declare namespace Cypress {
|
|
3003
3003
|
xhrUrl: string
|
3004
3004
|
}
|
3005
3005
|
|
3006
|
-
interface TestConfigOverrides extends Partial<Pick<ConfigOptions, 'animationDistanceThreshold' | 'blockHosts' | 'defaultCommandTimeout' | 'env' | 'execTimeout' | 'includeShadowDom' | 'numTestsKeptInMemory' | 'pageLoadTimeout' | 'redirectionLimit' | 'requestTimeout' | 'responseTimeout' | 'retries' | 'screenshotOnRunFailure' | 'slowTestThreshold' | 'scrollBehavior' | 'taskTimeout' | 'viewportHeight' | 'viewportWidth' | 'waitForAnimations' | 'experimentalSessionAndOrigin'>> {
|
3006
|
+
interface TestConfigOverrides extends Partial<Pick<ConfigOptions, 'animationDistanceThreshold' | 'blockHosts' | 'defaultCommandTimeout' | 'env' | 'execTimeout' | 'includeShadowDom' | 'numTestsKeptInMemory' | 'pageLoadTimeout' | 'redirectionLimit' | 'requestTimeout' | 'responseTimeout' | 'retries' | 'screenshotOnRunFailure' | 'slowTestThreshold' | 'scrollBehavior' | 'taskTimeout' | 'viewportHeight' | 'viewportWidth' | 'waitForAnimations' | 'experimentalSessionAndOrigin'>>, Partial<Pick<ResolvedConfigOptions, 'baseUrl'>> {
|
3007
3007
|
browser?: IsBrowserMatcher | IsBrowserMatcher[]
|
3008
3008
|
keystrokeDelay?: number
|
3009
3009
|
}
|
@@ -5500,7 +5500,7 @@ declare namespace Cypress {
|
|
5500
5500
|
|
5501
5501
|
interface DevServerConfig {
|
5502
5502
|
specs: Spec[]
|
5503
|
-
|
5503
|
+
cypressConfig: PluginConfigOptions
|
5504
5504
|
devServerEvents: NodeJS.EventEmitter
|
5505
5505
|
}
|
5506
5506
|
|
package/vue/CHANGELOG.md
CHANGED
@@ -1,3 +1,45 @@
|
|
1
|
+
# [@cypress/vue-v4.0.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v3.1.2...@cypress/vue-v4.0.0) (2022-06-13)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* display cy.mount command log ([#21500](https://github.com/cypress-io/cypress/issues/21500)) ([140b4ba](https://github.com/cypress-io/cypress/commit/140b4ba2110243712a614a39b2408c30cce4d0b1))
|
7
|
+
* Doc changes around vue2 ([#21066](https://github.com/cypress-io/cypress/issues/21066)) ([17905a7](https://github.com/cypress-io/cypress/commit/17905a79ee5106b0d72c8e74bb717fcd7b796dee))
|
8
|
+
* scope config to current testing type ([#20677](https://github.com/cypress-io/cypress/issues/20677)) ([61f7cfc](https://github.com/cypress-io/cypress/commit/61f7cfc59284a2938e0a1c15d74ee75215ba5f8b))
|
9
|
+
* update scaffold template to use correct path ([#20047](https://github.com/cypress-io/cypress/issues/20047)) ([6e80359](https://github.com/cypress-io/cypress/commit/6e803597a379222cf936e5977c8314d693ee1912))
|
10
|
+
* wire up scaffolded indexHtml to dev servers ([#20453](https://github.com/cypress-io/cypress/issues/20453)) ([3a8797e](https://github.com/cypress-io/cypress/commit/3a8797e54db9fd0ef93a14ddc71c138ba8251e53))
|
11
|
+
* **unified-desktop-gui branch:** initial installation on windows ([#18247](https://github.com/cypress-io/cypress/issues/18247)) ([8614e97](https://github.com/cypress-io/cypress/commit/8614e978029bcbf7155b7ae98ac54feb11f2e7f3))
|
12
|
+
|
13
|
+
|
14
|
+
### chore
|
15
|
+
|
16
|
+
* prep npm packages for use with Cypress v10 ([b924d08](https://github.com/cypress-io/cypress/commit/b924d086ee2e2ccc93303731e001b2c9e9d0af17))
|
17
|
+
|
18
|
+
|
19
|
+
### Features
|
20
|
+
|
21
|
+
* add devServer to config file ([#18962](https://github.com/cypress-io/cypress/issues/18962)) ([2573375](https://github.com/cypress-io/cypress/commit/2573375b5b6616efd2d213a94cd55fd8e0385864))
|
22
|
+
* Add vue2 package from npm/vue/v2 branch ([#21026](https://github.com/cypress-io/cypress/issues/21026)) ([3aa69e2](https://github.com/cypress-io/cypress/commit/3aa69e2538aae5702bfc48789c54f37263ce08fc))
|
23
|
+
* adding settings accordion ([e977b60](https://github.com/cypress-io/cypress/commit/e977b60521b863a227eb37189ab1b3081af00d9f))
|
24
|
+
* Deprecate run-ct / open-ct, and update all examples to use --ct instead ([#18422](https://github.com/cypress-io/cypress/issues/18422)) ([196e8f6](https://github.com/cypress-io/cypress/commit/196e8f62cc6d27974f235945cb5700624b3dae41))
|
25
|
+
* embedding mount into the cypress binary (real dependency) ([#20930](https://github.com/cypress-io/cypress/issues/20930)) ([3fe5f50](https://github.com/cypress-io/cypress/commit/3fe5f50e7832a4bfb20df8e71648434eb7f263d5))
|
26
|
+
* merging / delegating remote queries to cloud schema ([#17875](https://github.com/cypress-io/cypress/issues/17875)) ([94541d4](https://github.com/cypress-io/cypress/commit/94541d4f18591e8fa4b8702c39e92b0a7238aa5d))
|
27
|
+
* Structuring context & schema so it can be used on the client ([#17489](https://github.com/cypress-io/cypress/issues/17489)) ([e2f395e](https://github.com/cypress-io/cypress/commit/e2f395e330f384993ed1116469102a5315a21270)), closes [#17551](https://github.com/cypress-io/cypress/issues/17551)
|
28
|
+
* support specPattern, deprecate integrationFolder and componentFolder ([#19319](https://github.com/cypress-io/cypress/issues/19319)) ([792980a](https://github.com/cypress-io/cypress/commit/792980ac12746ef47b9c944ebe4c6c353a187ab2))
|
29
|
+
* swap the #__cy_root id selector to become data-cy-root for component mounting ([#20951](https://github.com/cypress-io/cypress/issues/20951)) ([0e7b555](https://github.com/cypress-io/cypress/commit/0e7b555f93fb403f431c5de4a07ae7ad6ac89ba2))
|
30
|
+
* update on-links ([#19235](https://github.com/cypress-io/cypress/issues/19235)) ([cc2d734](https://github.com/cypress-io/cypress/commit/cc2d7348185e2a090c60d92d9319ab460d8c7827))
|
31
|
+
* Use .config files ([#18578](https://github.com/cypress-io/cypress/issues/18578)) ([081dd19](https://github.com/cypress-io/cypress/commit/081dd19cc6da3da229a7af9c84f62730c85a5cd6))
|
32
|
+
* use devServer instad of startDevServer ([#20092](https://github.com/cypress-io/cypress/issues/20092)) ([8a6768f](https://github.com/cypress-io/cypress/commit/8a6768fee6f46b908c5a9daf23da8b804a6c627f))
|
33
|
+
* Use plugins on config files ([#18798](https://github.com/cypress-io/cypress/issues/18798)) ([bb8251b](https://github.com/cypress-io/cypress/commit/bb8251b752ac44f1184f9160194cf12d41fc867f))
|
34
|
+
* use supportFile by testingType ([#19364](https://github.com/cypress-io/cypress/issues/19364)) ([0366d4f](https://github.com/cypress-io/cypress/commit/0366d4fa8971e5e5189c6fd6450cc3c8d72dcfe1))
|
35
|
+
* validate specPattern root level ([#19980](https://github.com/cypress-io/cypress/issues/19980)) ([5d52758](https://github.com/cypress-io/cypress/commit/5d52758d82c47033803c69c7858fc786a900faaf))
|
36
|
+
* vue-cli and nuxt preset for CT object API architecture ([#20956](https://github.com/cypress-io/cypress/issues/20956)) ([57659c4](https://github.com/cypress-io/cypress/commit/57659c42468591265143aae2ff06bae4e440085f))
|
37
|
+
|
38
|
+
|
39
|
+
### BREAKING CHANGES
|
40
|
+
|
41
|
+
* new version of packages for Cypress v10
|
42
|
+
|
1
43
|
# [@cypress/vue-v3.1.2](https://github.com/cypress-io/cypress/compare/@cypress/vue-v3.1.1...@cypress/vue-v3.1.2) (2022-05-03)
|
2
44
|
|
3
45
|
|
@@ -31,7 +31,7 @@ function _interopNamespace(e) {
|
|
31
31
|
|
32
32
|
var Vue__namespace = /*#__PURE__*/_interopNamespace(Vue);
|
33
33
|
|
34
|
-
|
34
|
+
/******************************************************************************
|
35
35
|
Copyright (c) Microsoft Corporation.
|
36
36
|
|
37
37
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import * as Vue from 'vue';
|
9
9
|
import { nextTick, defineComponent, computed, h, reactive, createApp, transformVNodeArgs, Transition, TransitionGroup, Teleport, setDevtoolsHook } from 'vue';
|
10
10
|
|
11
|
-
|
11
|
+
/******************************************************************************
|
12
12
|
Copyright (c) Microsoft Corporation.
|
13
13
|
|
14
14
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/vue/package.json
CHANGED
package/vue2/CHANGELOG.md
CHANGED
@@ -1,3 +1,35 @@
|
|
1
|
+
# [@cypress/vue2-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.0...@cypress/vue2-v1.0.1) (2022-06-13)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* remove http npm registry link for vue2 ([0bd3069](https://github.com/cypress-io/cypress/commit/0bd306962bce2a32d7b87fc1811a7b9feeb63ae2))
|
7
|
+
|
8
|
+
# @cypress/vue2-v1.0.0 (2022-06-13)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* add package.json metadata for webpack-dev-server ([#22292](https://github.com/cypress-io/cypress/issues/22292)) ([9cfec97](https://github.com/cypress-io/cypress/commit/9cfec9750f2ddc9fe691aabbe2ecc9bc02a3d915))
|
14
|
+
* display cy.mount command log ([#21500](https://github.com/cypress-io/cypress/issues/21500)) ([140b4ba](https://github.com/cypress-io/cypress/commit/140b4ba2110243712a614a39b2408c30cce4d0b1))
|
15
|
+
* Doc changes around vue2 ([#21066](https://github.com/cypress-io/cypress/issues/21066)) ([17905a7](https://github.com/cypress-io/cypress/commit/17905a79ee5106b0d72c8e74bb717fcd7b796dee))
|
16
|
+
|
17
|
+
|
18
|
+
### chore
|
19
|
+
|
20
|
+
* prep npm packages for use with Cypress v10 ([b924d08](https://github.com/cypress-io/cypress/commit/b924d086ee2e2ccc93303731e001b2c9e9d0af17))
|
21
|
+
|
22
|
+
|
23
|
+
### Features
|
24
|
+
|
25
|
+
* Add vue2 package from npm/vue/v2 branch ([#21026](https://github.com/cypress-io/cypress/issues/21026)) ([3aa69e2](https://github.com/cypress-io/cypress/commit/3aa69e2538aae5702bfc48789c54f37263ce08fc))
|
26
|
+
* swap the #__cy_root id selector to become data-cy-root for component mounting ([#20951](https://github.com/cypress-io/cypress/issues/20951)) ([0e7b555](https://github.com/cypress-io/cypress/commit/0e7b555f93fb403f431c5de4a07ae7ad6ac89ba2))
|
27
|
+
|
28
|
+
|
29
|
+
### BREAKING CHANGES
|
30
|
+
|
31
|
+
* new version of packages for Cypress v10
|
32
|
+
|
1
33
|
# @cypress/vue2-v1.0.0 (2021-06-17)
|
2
34
|
|
3
35
|
### Features
|
@@ -12,7 +12,7 @@ var CypressVue2 = (function (exports, require$$0$1) {
|
|
12
12
|
|
13
13
|
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
|
14
14
|
|
15
|
-
|
15
|
+
/******************************************************************************
|
16
16
|
Copyright (c) Microsoft Corporation.
|
17
17
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
15
15
|
|
16
16
|
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
|
17
17
|
|
18
|
-
|
18
|
+
/******************************************************************************
|
19
19
|
Copyright (c) Microsoft Corporation.
|
20
20
|
|
21
21
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import require$$0$1 from 'vue';
|
9
9
|
|
10
|
-
|
10
|
+
/******************************************************************************
|
11
11
|
Copyright (c) Microsoft Corporation.
|
12
12
|
|
13
13
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/vue2/package.json
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
"name": "@cypress/vue2",
|
3
3
|
"version": "0.0.0-development",
|
4
4
|
"description": "Browser-based Component Testing for Vue.js@2 with Cypress.io ✌️🌲",
|
5
|
-
"private": true,
|
6
5
|
"main": "dist/cypress-vue2.cjs.js",
|
7
6
|
"scripts": {
|
8
7
|
"typecheck": "tsc --noEmit",
|
@@ -53,7 +52,6 @@
|
|
53
52
|
"unpkg": "dist/cypress-vue2.browser.js",
|
54
53
|
"module": "dist/cypress-vue2.esm-bundler.js",
|
55
54
|
"publishConfig": {
|
56
|
-
"access": "public"
|
57
|
-
"registry": "http://registry.npmjs.org/"
|
55
|
+
"access": "public"
|
58
56
|
}
|
59
57
|
}
|