cypress 10.3.0 → 10.5.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 +7 -2
- package/lib/exec/spawn.js +7 -2
- package/mount-utils/CHANGELOG.md +7 -1
- package/mount-utils/README.md +7 -0
- package/mount-utils/dist/index.js +8 -1
- package/mount-utils/package.json +1 -0
- package/package.json +26 -10
- package/react/CHANGELOG.md +13 -19
- package/react/README.md +28 -323
- package/react/dist/createMount.d.ts +28 -0
- package/react/dist/cypress-react.cjs.js +643 -99
- package/react/dist/cypress-react.esm-bundler.js +640 -100
- 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 +6 -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 +24 -3
- 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 -607
- package/vue/dist/@vue/test-utils/baseWrapper.d.ts +63 -0
- package/vue/dist/@vue/test-utils/components/RouterLinkStub.d.ts +21 -0
- package/vue/dist/@vue/test-utils/config.d.ts +30 -0
- package/vue/dist/@vue/test-utils/constants/dom-events.d.ts +900 -0
- package/vue/dist/@vue/test-utils/createDomEvent.d.ts +9 -0
- package/vue/dist/@vue/test-utils/domWrapper.d.ts +18 -0
- package/vue/dist/@vue/test-utils/emit.d.ts +5 -0
- package/vue/dist/@vue/test-utils/errorWrapper.d.ts +1 -0
- package/vue/dist/@vue/test-utils/index.d.ts +11 -0
- package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +56 -0
- package/vue/dist/@vue/test-utils/mount.d.ts +35 -0
- package/vue/dist/@vue/test-utils/stubs.d.ts +22 -0
- package/vue/dist/@vue/test-utils/types.d.ts +125 -0
- package/vue/dist/@vue/test-utils/utils/autoUnmount.d.ts +5 -0
- package/vue/dist/@vue/test-utils/utils/compileSlots.d.ts +2 -0
- package/vue/dist/@vue/test-utils/utils/componentName.d.ts +4 -0
- package/vue/dist/@vue/test-utils/utils/find.d.ts +10 -0
- package/vue/dist/@vue/test-utils/utils/flushPromises.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/getRootNodes.d.ts +2 -0
- package/vue/dist/@vue/test-utils/utils/isElement.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/isElementVisible.d.ts +6 -0
- package/vue/dist/@vue/test-utils/utils/matchName.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/stringifyNode.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/vueCompatSupport.d.ts +8 -0
- package/vue/dist/@vue/test-utils/utils/vueShared.d.ts +3 -0
- package/vue/dist/@vue/test-utils/utils.d.ts +13 -0
- package/vue/dist/@vue/test-utils/vueWrapper.d.ts +35 -0
- package/vue/dist/@vue/test-utils/wrapperFactory.d.ts +14 -0
- package/vue/dist/cypress-vue.cjs.js +5585 -5211
- package/vue/dist/cypress-vue.esm-bundler.js +5586 -5213
- package/vue/dist/index.d.ts +35 -3
- package/vue/package.json +11 -8
- package/vue2/CHANGELOG.md +7 -0
- package/vue2/README.md +11 -627
- package/vue2/dist/cypress-vue2.browser.js +267 -261
- package/vue2/dist/cypress-vue2.cjs.js +266 -260
- package/vue2/dist/cypress-vue2.esm-bundler.js +264 -258
- package/vue2/package.json +1 -1
- package/react/dist/cypress-react.browser.js +0 -497
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
|
@@ -2941,7 +2957,7 @@ declare namespace Cypress {
|
|
2941
2957
|
/**
|
2942
2958
|
* Hosts mappings to IP addresses.
|
2943
2959
|
*/
|
2944
|
-
hosts: null | string
|
2960
|
+
hosts: null | {[key: string]: string}
|
2945
2961
|
/**
|
2946
2962
|
* Whether Cypress was launched via 'cypress open' (interactive mode)
|
2947
2963
|
*/
|
@@ -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'
|
@@ -3057,7 +3073,12 @@ declare namespace Cypress {
|
|
3057
3073
|
* Takes ComponentDevServerOpts to track the signature of the devServerConfig for the provided `devServer`,
|
3058
3074
|
* so we have proper completion for `devServerConfig`
|
3059
3075
|
*/
|
3060
|
-
type ConfigOptions<ComponentDevServerOpts = any> = Partial<UserConfigOptions<ComponentDevServerOpts>>
|
3076
|
+
type ConfigOptions<ComponentDevServerOpts = any> = Partial<UserConfigOptions<ComponentDevServerOpts>> & {
|
3077
|
+
/**
|
3078
|
+
* Hosts mappings to IP addresses.
|
3079
|
+
*/
|
3080
|
+
hosts?: null | {[key: string]: string}
|
3081
|
+
}
|
3061
3082
|
|
3062
3083
|
interface PluginConfigOptions extends ResolvedConfigOptions, RuntimeConfigOptions {
|
3063
3084
|
/**
|
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
|