cypress 10.7.0 → 10.8.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.
@@ -1,3 +1,15 @@
1
+ # [@cypress/angular-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/angular-v1.0.0...@cypress/angular-v1.1.0) (2022-08-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4))
7
+
8
+
9
+ ### Features
10
+
11
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
12
+
1
13
  # @cypress/angular-v1.0.0 (2022-08-17)
2
14
 
3
15
 
@@ -1,3 +1,10 @@
1
+ # [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
7
+
1
8
  # [@cypress/mount-utils-v2.0.1](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.0...@cypress/mount-utils-v2.0.1) (2022-08-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "10.7.0",
3
+ "version": "10.8.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -26,7 +26,7 @@
26
26
  "dayjs": "^1.10.4",
27
27
  "debug": "^4.3.2",
28
28
  "enquirer": "^2.3.6",
29
- "eventemitter2": "^6.4.3",
29
+ "eventemitter2": "6.4.7",
30
30
  "execa": "4.1.0",
31
31
  "executable": "^4.1.1",
32
32
  "extract-zip": "2.0.1",
@@ -118,8 +118,8 @@
118
118
  },
119
119
  "buildInfo": {
120
120
  "commitBranch": "develop",
121
- "commitSha": "b5e6fd67a9080864274ffa54cef30ca6445650d1",
122
- "commitDate": "2022-08-30T14:25:23.000Z",
121
+ "commitSha": "864ab8ebf2782aa0c82ab3894c4334ed0cfc9aa4",
122
+ "commitDate": "2022-09-13T15:49:01.000Z",
123
123
  "stable": true
124
124
  },
125
125
  "description": "Cypress.io end to end testing tool",
@@ -1,3 +1,10 @@
1
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
7
+
1
8
  # [@cypress/react-v6.1.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.0...@cypress/react-v6.1.1) (2022-08-15)
2
9
 
3
10
 
@@ -27,7 +27,7 @@
27
27
  "react-router-dom": "6.0.0-alpha.1",
28
28
  "semver": "^7.3.2",
29
29
  "typescript": "^4.7.4",
30
- "vite": "3.0.3",
30
+ "vite": "3.1.0",
31
31
  "vite-plugin-require-transform": "1.0.3"
32
32
  },
33
33
  "peerDependencies": {
@@ -1,3 +1,10 @@
1
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
7
+
1
8
  # [@cypress/react18-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.0...@cypress/react18-v1.0.1) (2022-08-15)
2
9
 
3
10
 
@@ -580,6 +580,7 @@ let root;
580
580
  const cleanup = () => {
581
581
  if (root) {
582
582
  root.unmount();
583
+ root = null;
583
584
  return true;
584
585
  }
585
586
  return false;
@@ -588,7 +589,9 @@ function mount(jsx, options = {}, rerenderKey) {
588
589
  const internalOptions = {
589
590
  reactDom: ReactDOM__default["default"],
590
591
  render: (reactComponent, el) => {
591
- root = ReactDOM__default["default"].createRoot(el);
592
+ if (!root) {
593
+ root = ReactDOM__default["default"].createRoot(el);
594
+ }
592
595
  return root.render(reactComponent);
593
596
  },
594
597
  unmount,
@@ -553,6 +553,7 @@ let root;
553
553
  const cleanup = () => {
554
554
  if (root) {
555
555
  root.unmount();
556
+ root = null;
556
557
  return true;
557
558
  }
558
559
  return false;
@@ -561,7 +562,9 @@ function mount(jsx, options = {}, rerenderKey) {
561
562
  const internalOptions = {
562
563
  reactDom: ReactDOM,
563
564
  render: (reactComponent, el) => {
564
- root = ReactDOM.createRoot(el);
565
+ if (!root) {
566
+ root = ReactDOM.createRoot(el);
567
+ }
565
568
  return root.render(reactComponent);
566
569
  },
567
570
  unmount,
@@ -0,0 +1,6 @@
1
+ # @cypress/svelte-v1.0.0 (2022-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
@@ -189,7 +189,7 @@ function mount(Component, options = {}) {
189
189
  // by waiting, we are delaying test execution for the next tick of event loop
190
190
  // and letting hooks and component lifecycle methods to execute mount
191
191
  return cy.wait(0, { log: false }).then(() => {
192
- if (options.log) {
192
+ if (options.log !== false) {
193
193
  const mountMessage = `<${getComponentDisplayName(Component)} ... />`;
194
194
  Cypress.log({
195
195
  name: 'mount',
@@ -185,7 +185,7 @@ function mount(Component, options = {}) {
185
185
  // by waiting, we are delaying test execution for the next tick of event loop
186
186
  // and letting hooks and component lifecycle methods to execute mount
187
187
  return cy.wait(0, { log: false }).then(() => {
188
- if (options.log) {
188
+ if (options.log !== false) {
189
189
  const mountMessage = `<${getComponentDisplayName(Component)} ... />`;
190
190
  Cypress.log({
191
191
  name: 'mount',
@@ -82,7 +82,7 @@ declare namespace Cypress {
82
82
 
83
83
  type BrowserChannel = 'stable' | 'canary' | 'beta' | 'dev' | 'nightly' | string
84
84
 
85
- type BrowserFamily = 'chromium' | 'firefox'
85
+ type BrowserFamily = 'chromium' | 'firefox' | 'webkit'
86
86
 
87
87
  /**
88
88
  * Describes a browser Cypress can control
@@ -2720,6 +2720,13 @@ declare namespace Cypress {
2720
2720
  * @default 60000
2721
2721
  */
2722
2722
  pageLoadTimeout: number
2723
+ /**
2724
+ * Whether Cypress will search for and replace
2725
+ * obstructive JS code in .js or .html files.
2726
+ *
2727
+ * @see https://on.cypress.io/configuration#modifyObstructiveCode
2728
+ */
2729
+ modifyObstructiveCode: boolean
2723
2730
  /**
2724
2731
  * Time, in milliseconds, to wait for an XHR request to go out in a [cy.wait()](https://on.cypress.io/wait) command
2725
2732
  * @default 5000
@@ -2876,6 +2883,11 @@ declare namespace Cypress {
2876
2883
  * @default false
2877
2884
  */
2878
2885
  experimentalStudio: boolean
2886
+ /**
2887
+ * Adds support for testing in the WebKit browser engine used by Safari. See https://on.cypress.io/webkit-experiment for more information.
2888
+ * @default false
2889
+ */
2890
+ experimentalWebKitSupport: boolean
2879
2891
  /**
2880
2892
  * Number of times to retry a failed test.
2881
2893
  * If a number is set, tests will retry in both runMode and openMode.
@@ -2968,13 +2980,6 @@ declare namespace Cypress {
2968
2980
  * Whether Cypress was launched via 'cypress open' (interactive mode)
2969
2981
  */
2970
2982
  isInteractive: boolean
2971
- /**
2972
- * Whether Cypress will search for and replace
2973
- * obstructive JS code in .js or .html files.
2974
- *
2975
- * @see https://on.cypress.io/configuration#modifyObstructiveCode
2976
- */
2977
- modifyObstructiveCode: boolean
2978
2983
  /**
2979
2984
  * The platform Cypress is running on.
2980
2985
  */
package/vue/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
7
+
1
8
  # [@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
9
 
3
10
 
package/vue/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "globby": "^11.0.1",
26
26
  "tailwindcss": "1.1.4",
27
27
  "typescript": "^4.7.4",
28
- "vite": "3.0.3",
28
+ "vite": "3.1.0",
29
29
  "vue": "3.2.31",
30
30
  "vue-i18n": "9.0.0-rc.6",
31
31
  "vue-router": "^4.0.0",
package/vue2/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-08-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
7
+
1
8
  # [@cypress/vue2-v1.0.2](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.1...@cypress/vue2-v1.0.2) (2022-08-11)
2
9
 
3
10