cypress 10.3.1 → 10.6.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/CHANGELOG.md +55 -0
- package/angular/README.md +154 -0
- package/angular/dist/index.d.ts +1 -0
- package/angular/dist/index.js +263 -0
- package/angular/dist/mount.d.ts +111 -0
- package/angular/package.json +70 -0
- package/lib/exec/open.js +6 -0
- package/lib/tasks/download.js +4 -3
- package/mount-utils/CHANGELOG.md +7 -1
- package/mount-utils/README.md +7 -0
- package/package.json +16 -5
- package/react/CHANGELOG.md +20 -19
- package/react/README.md +28 -323
- package/react/dist/createMount.d.ts +28 -0
- package/react/dist/cypress-react.cjs.js +627 -98
- package/react/dist/cypress-react.esm-bundler.js +624 -99
- package/react/dist/getDisplayName.d.ts +1 -1
- package/react/dist/index.d.ts +2 -0
- package/react/dist/mount.d.ts +5 -141
- package/react/dist/types.d.ts +44 -0
- package/react/package.json +3 -5
- package/react18/CHANGELOG.md +13 -0
- package/react18/dist/cypress-react.cjs.js +633 -0
- package/react18/dist/cypress-react.esm-bundler.js +605 -0
- package/react18/dist/index.d.ts +5 -0
- package/react18/package.json +59 -0
- package/types/cypress.d.ts +28 -2
- package/types/index.d.ts +1 -1
- package/types/{net-stubbing.ts → net-stubbing.d.ts} +0 -0
- package/vue/CHANGELOG.md +16 -17
- package/vue/README.md +17 -608
- package/vue/dist/@vue/test-utils/baseWrapper.d.ts +3 -1
- package/vue/dist/@vue/test-utils/config.d.ts +4 -2
- package/vue/dist/@vue/test-utils/emit.d.ts +1 -0
- package/vue/dist/@vue/test-utils/index.d.ts +2 -1
- package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +2 -2
- package/vue/dist/@vue/test-utils/mount.d.ts +2 -0
- package/vue/dist/@vue/test-utils/stubs.d.ts +2 -6
- package/vue/dist/@vue/test-utils/types.d.ts +1 -1
- package/vue/dist/@vue/test-utils/vueWrapper.d.ts +2 -1
- package/vue/dist/cypress-vue.cjs.js +5379 -5090
- package/vue/dist/cypress-vue.esm-bundler.js +5380 -5091
- package/vue/dist/index.d.ts +1 -0
- package/vue/package.json +2 -3
- package/vue2/CHANGELOG.md +7 -0
- package/vue2/README.md +11 -627
- package/vue2/dist/cypress-vue2.browser.js +251 -260
- package/vue2/dist/cypress-vue2.cjs.js +250 -259
- package/vue2/dist/cypress-vue2.esm-bundler.js +248 -257
- package/react/dist/cypress-react.browser.js +0 -512
package/types/cypress.d.ts
CHANGED
@@ -2784,6 +2784,13 @@ declare namespace Cypress {
|
|
2784
2784
|
* @default "cypress/support/{e2e|component}.js"
|
2785
2785
|
*/
|
2786
2786
|
supportFile: string | false
|
2787
|
+
/**
|
2788
|
+
* The test isolation level applied to ensure a clean slate between tests.
|
2789
|
+
* - legacy - resets/clears aliases, intercepts, clock, viewport, cookies, and local storage before each test.
|
2790
|
+
* - strict - applies all resets/clears from legacy, plus clears the page by visiting 'about:blank' to ensure clean app state before each test.
|
2791
|
+
* @default "legacy", however, when experimentalSessionAndOrigin=true, the default is "strict"
|
2792
|
+
*/
|
2793
|
+
testIsolation: 'legacy' | 'strict'
|
2787
2794
|
/**
|
2788
2795
|
* Path to folder where videos will be saved after a headless or CI run
|
2789
2796
|
* @default "cypress/videos"
|
@@ -2849,6 +2856,15 @@ declare namespace Cypress {
|
|
2849
2856
|
* @default false
|
2850
2857
|
*/
|
2851
2858
|
experimentalSessionAndOrigin: boolean
|
2859
|
+
/**
|
2860
|
+
* Whether Cypress will search for and replace obstructive code in third party .js or .html files.
|
2861
|
+
* NOTE: Setting this flag to true removes Subresource Integrity (SRI).
|
2862
|
+
* Please see https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity.
|
2863
|
+
* This option has no impact on experimentalSourceRewriting and is only used with the
|
2864
|
+
* non-experimental source rewriter.
|
2865
|
+
* @see https://on.cypress.io/configuration#experimentalModifyObstructiveThirdPartyCode
|
2866
|
+
*/
|
2867
|
+
experimentalModifyObstructiveThirdPartyCode: boolean
|
2852
2868
|
/**
|
2853
2869
|
* Generate and save commands directly to your test suite by interacting with your app as an end user would.
|
2854
2870
|
* @default false
|
@@ -3035,7 +3051,7 @@ declare namespace Cypress {
|
|
3035
3051
|
|
3036
3052
|
type DevServerConfigOptions = {
|
3037
3053
|
bundler: 'webpack'
|
3038
|
-
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next'
|
3054
|
+
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next' | 'angular'
|
3039
3055
|
webpackConfig?: PickConfigOpt<'webpackConfig'>
|
3040
3056
|
} | {
|
3041
3057
|
bundler: 'vite'
|
@@ -3046,6 +3062,11 @@ declare namespace Cypress {
|
|
3046
3062
|
interface ComponentConfigOptions<ComponentDevServerOpts = any> extends Omit<CoreConfigOptions, 'baseUrl' | 'experimentalSessionAndOrigin'> {
|
3047
3063
|
devServer: DevServerFn<ComponentDevServerOpts> | DevServerConfigOptions
|
3048
3064
|
devServerConfig?: ComponentDevServerOpts
|
3065
|
+
/**
|
3066
|
+
* Runs all component specs in a single tab, trading spec isolation for faster run mode execution.
|
3067
|
+
* @default false
|
3068
|
+
*/
|
3069
|
+
experimentalSingleTabRunMode?: boolean
|
3049
3070
|
}
|
3050
3071
|
|
3051
3072
|
/**
|
@@ -3057,7 +3078,12 @@ declare namespace Cypress {
|
|
3057
3078
|
* Takes ComponentDevServerOpts to track the signature of the devServerConfig for the provided `devServer`,
|
3058
3079
|
* so we have proper completion for `devServerConfig`
|
3059
3080
|
*/
|
3060
|
-
type ConfigOptions<ComponentDevServerOpts = any> = Partial<UserConfigOptions<ComponentDevServerOpts>>
|
3081
|
+
type ConfigOptions<ComponentDevServerOpts = any> = Partial<UserConfigOptions<ComponentDevServerOpts>> & {
|
3082
|
+
/**
|
3083
|
+
* Hosts mappings to IP addresses.
|
3084
|
+
*/
|
3085
|
+
hosts?: null | {[key: string]: string}
|
3086
|
+
}
|
3061
3087
|
|
3062
3088
|
interface PluginConfigOptions extends ResolvedConfigOptions, RuntimeConfigOptions {
|
3063
3089
|
/**
|
package/types/index.d.ts
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
// hmm, how to load it better?
|
27
27
|
/// <reference path="./cypress-npm-api.d.ts" />
|
28
28
|
|
29
|
-
/// <reference path="./net-stubbing.ts" />
|
29
|
+
/// <reference path="./net-stubbing.d.ts" />
|
30
30
|
/// <reference path="./cypress.d.ts" />
|
31
31
|
/// <reference path="./cypress-global-vars.d.ts" />
|
32
32
|
/// <reference path="./cypress-type-helpers.d.ts" />
|
File without changes
|
package/vue/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [@cypress/vue-v4.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.0.0...@cypress/vue-v4.1.0) (2022-08-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* remove CT side effects from mount when e2e testing ([#22633](https://github.com/cypress-io/cypress/issues/22633)) ([a9476ec](https://github.com/cypress-io/cypress/commit/a9476ecb3d43f628b689e060294a1952937cb1a7))
|
7
|
+
* remove dependency causing semantic-release to fail ([#23142](https://github.com/cypress-io/cypress/issues/23142)) ([20f89bf](https://github.com/cypress-io/cypress/commit/20f89bfa32636baa8922896e719962c703129abd))
|
8
|
+
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* **npm/vue:** expose Test Utils API ([#22757](https://github.com/cypress-io/cypress/issues/22757)) ([8e07318](https://github.com/cypress-io/cypress/commit/8e07318a9f72c3df012be47d500007571165a87e))
|
13
|
+
* update to Vite 3 ([#22915](https://github.com/cypress-io/cypress/issues/22915)) ([6adba46](https://github.com/cypress-io/cypress/commit/6adba462ea6b76dbb96f99aa3837492ca1f17ed3))
|
14
|
+
|
1
15
|
# [@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
16
|
|
3
17
|
|
@@ -5,10 +19,6 @@
|
|
5
19
|
|
6
20
|
* display cy.mount command log ([#21500](https://github.com/cypress-io/cypress/issues/21500)) ([140b4ba](https://github.com/cypress-io/cypress/commit/140b4ba2110243712a614a39b2408c30cce4d0b1))
|
7
21
|
* 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
22
|
|
13
23
|
|
14
24
|
### chore
|
@@ -18,22 +28,11 @@
|
|
18
28
|
|
19
29
|
### Features
|
20
30
|
|
21
|
-
*
|
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))
|
31
|
+
* Update "typescript" dev dependency ([e977b60](https://github.com/cypress-io/cypress/commit/e977b60521b863a227eb37189ab1b3081af00d9f))
|
25
32
|
* 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
33
|
* 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
34
|
* update on-links ([#19235](https://github.com/cypress-io/cypress/issues/19235)) ([cc2d734](https://github.com/cypress-io/cypress/commit/cc2d7348185e2a090c60d92d9319ab460d8c7827))
|
31
|
-
*
|
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))
|
35
|
+
* Update "@vue/test-utils" dependency ([#20956](https://github.com/cypress-io/cypress/issues/20956)) ([57659c4](https://github.com/cypress-io/cypress/commit/57659c42468591265143aae2ff06bae4e440085f))
|
37
36
|
|
38
37
|
|
39
38
|
### BREAKING CHANGES
|