cypress 10.9.0 → 10.10.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,36 @@
1
+ # [@cypress/angular-v1.1.1](https://github.com/cypress-io/cypress/compare/@cypress/angular-v1.1.0...@cypress/angular-v1.1.1) (2022-10-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **angular:** call ngOnChanges after mount ([#23596](https://github.com/cypress-io/cypress/issues/23596)) ([670d438](https://github.com/cypress-io/cypress/commit/670d43830947c3ea93ef9fdc9c90932a817eb453))
7
+
8
+ # [@cypress/angular-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/angular-v1.0.0...@cypress/angular-v1.1.0) (2022-09-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4))
14
+ * Fix missing `it.skip` function in Angular tests ([#23829](https://github.com/cypress-io/cypress/issues/23829)) ([64c0f45](https://github.com/cypress-io/cypress/commit/64c0f45182456bd43f4b64b2311e816dde615236))
15
+
16
+
17
+ ### Features
18
+
19
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
20
+
21
+ # [@cypress/angular-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/angular-v1.0.0...@cypress/angular-v1.1.0) (2022-09-27)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4))
27
+ * Fix missing `it.skip` function in Angular tests ([#23829](https://github.com/cypress-io/cypress/issues/23829)) ([64c0f45](https://github.com/cypress-io/cypress/commit/64c0f45182456bd43f4b64b2311e816dde615236))
28
+
29
+
30
+ ### Features
31
+
32
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
33
+
1
34
  # [@cypress/angular-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/angular-v1.0.0...@cypress/angular-v1.1.0) (2022-09-23)
2
35
 
3
36
 
@@ -8,7 +8,7 @@
8
8
  import 'zone.js';
9
9
  import 'zone.js/testing';
10
10
  import { CommonModule } from '@angular/common';
11
- import { Component, EventEmitter } from '@angular/core';
11
+ import { Injectable, Component, EventEmitter, SimpleChange, ErrorHandler } from '@angular/core';
12
12
  import { getTestBed, TestBed } from '@angular/core/testing';
13
13
  import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
14
14
 
@@ -95,6 +95,14 @@ window.Mocha['__zone_patch__'] = false;
95
95
  // Written up under https://github.com/angular/angular/issues/46297 but is not seeing movement
96
96
  // so we'll patch here pending a fix in that library
97
97
  globalThis.it.skip = globalThis.xit;
98
+ let CypressAngularErrorHandler = class CypressAngularErrorHandler {
99
+ handleError(error) {
100
+ throw error;
101
+ }
102
+ };
103
+ CypressAngularErrorHandler = __decorate([
104
+ Injectable()
105
+ ], CypressAngularErrorHandler);
98
106
  /**
99
107
  * Bootstraps the TestModuleMetaData passed to the TestBed
100
108
  *
@@ -110,6 +118,15 @@ function bootstrapModule(component, config) {
110
118
  if (!testModuleMetaData.imports) {
111
119
  testModuleMetaData.imports = [];
112
120
  }
121
+ if (!testModuleMetaData.providers) {
122
+ testModuleMetaData.providers = [];
123
+ }
124
+ // Replace default error handler since it will swallow uncaught exceptions.
125
+ // We want these to be uncaught so Cypress catches it and fails the test
126
+ testModuleMetaData.providers.push({
127
+ provide: ErrorHandler,
128
+ useClass: CypressAngularErrorHandler,
129
+ });
113
130
  // check if the component is a standalone component
114
131
  if (component.ɵcmp.standalone) {
115
132
  testModuleMetaData.imports.push(component);
@@ -198,6 +215,19 @@ function setupComponent(config, fixture) {
198
215
  }
199
216
  });
200
217
  }
218
+ // Manually call ngOnChanges when mounting components using the class syntax.
219
+ // This is necessary because we are assigning input values to the class directly
220
+ // on mount and therefore the ngOnChanges() lifecycle is not triggered.
221
+ if (component.ngOnChanges && config.componentProperties) {
222
+ const { componentProperties } = config;
223
+ const simpleChanges = Object.entries(componentProperties).reduce((acc, [key, value]) => {
224
+ acc[key] = new SimpleChange(null, value, true);
225
+ return acc;
226
+ }, {});
227
+ if (Object.keys(componentProperties).length > 0) {
228
+ component.ngOnChanges(simpleChanges);
229
+ }
230
+ }
201
231
  return component;
202
232
  }
203
233
  /**
@@ -1,3 +1,73 @@
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-10-11)
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
+
8
+ # [@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-10-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
14
+
15
+ # [@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-10-04)
16
+
17
+
18
+ ### Features
19
+
20
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
21
+
22
+ # [@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-10-04)
23
+
24
+
25
+ ### Features
26
+
27
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
28
+
29
+ # [@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-10-03)
30
+
31
+
32
+ ### Features
33
+
34
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
35
+
36
+ # [@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-10-01)
37
+
38
+
39
+ ### Features
40
+
41
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
42
+
43
+ # [@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-09-30)
44
+
45
+
46
+ ### Features
47
+
48
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
49
+
50
+ # [@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-09-30)
51
+
52
+
53
+ ### Features
54
+
55
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
56
+
57
+ # [@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-09-30)
58
+
59
+
60
+ ### Features
61
+
62
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
63
+
64
+ # [@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-09-29)
65
+
66
+
67
+ ### Features
68
+
69
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
70
+
1
71
  # [@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
72
 
3
73
 
@@ -8,6 +8,142 @@ It is used in:
8
8
 
9
9
  - [`@cypress/react`](https://github.com/cypress-io/cypress/tree/develop/npm/react)
10
10
  - [`@cypress/vue`](https://github.com/cypress-io/cypress/tree/develop/npm/vue)
11
+ - [`@cypress/svelte`](https://github.com/cypress-io/cypress/tree/develop/npm/svelte)
12
+ - [`@cypress/angular`](https://github.com/cypress-io/cypress/tree/develop/npm/angular)
13
+
14
+ ## What is a Mount Adapter?
15
+
16
+ All Component Tests require a component to be **mounted**. This is generally done with a custom command, `cy.mount` by default.
17
+
18
+
19
+ ### Requirements
20
+
21
+ All the functionality used to create the first party Mount adapters is available to support third parties adapters. At minimum, a Mount Adapter must:
22
+
23
+ - Receive a component as the first argument. This could be class, function etc - depends on the framework.
24
+ - Return a Cypress Chainable (for example using `cy.wrap`) that resolves whatever is idiomatic for your framework
25
+
26
+ In addition, we recommend that Mount Adapters:
27
+
28
+ - receive a second argument that extends `StyleOptions` from `@cypress/mount-utils`
29
+ - calls `injectStylesBeforeElement` from `@cypress/mount-utils` before mounting the component
30
+ - calls `setupHooks` to register the required lifecycle hooks for `@cypress/mount-utils` to work
31
+
32
+ This will let the user inject styles `<style>...</style>` and stylesheets `<link rel="stylesheet">`, which is very useful for developing components.
33
+
34
+ ### Example Mount Adapter: Web Components
35
+
36
+ Here's a simple yet realistic example of Mount Adapter targeting Web Components. It uses utilities from this package (`@cypress/mount-utils`) This is recommended, so your adapter behaves similar to the first party Mount Adapters.
37
+
38
+ ```ts
39
+ import {
40
+ ROOT_SELECTOR,
41
+ setupHooks,
42
+ injectStylesBeforeElement,
43
+ getContainerEl,
44
+ StyleOptions
45
+ } from "@cypress/mount-utils";
46
+
47
+ Cypress.on("run:start", () => {
48
+ // Consider doing a check to ensure your adapter only runs in Component Testing mode.
49
+ if (Cypress.testingType !== "component") {
50
+ return;
51
+ }
52
+
53
+ Cypress.on("test:before:run", () => {
54
+ // Do some cleanup from previous test - for example, clear the DOM.
55
+ getContainerEl().innerHTML = "";
56
+ });
57
+ });
58
+
59
+ function maybeRegisterComponent<T extends CustomElementConstructor>(
60
+ name: string,
61
+ webComponent: T
62
+ ) {
63
+ // Avoid double-registering a Web Component.
64
+ if (window.customElements.get(name)) {
65
+ return;
66
+ }
67
+
68
+ window.customElements.define(name, webComponent);
69
+ }
70
+
71
+ export function mount(
72
+ webComponent: CustomElementConstructor,
73
+ options?: Partial<StyleOptions>
74
+ ): Cypress.Chainable {
75
+ // Get root selector defined in `cypress/support.component-index.html
76
+ const $root = document.querySelector(ROOT_SELECTOR)!;
77
+
78
+ // Change to kebab-case to comply with Web Component naming convention
79
+ const name = webComponent.name
80
+ .replace(/([a-z0–9])([A-Z])/g, "$1-$2")
81
+ .toLowerCase();
82
+
83
+ /// Register Web Component
84
+ maybeRegisterComponent(name, webComponent);
85
+
86
+ // Inject user styles before mounting the component
87
+ injectStylesBeforeElement(options ?? {}, document, getContainerEl())
88
+
89
+ // Render HTML containing component.
90
+ $root.innerHTML = `<${name} id="root"></${name}>`;
91
+
92
+ // Log a messsage in the Command Log.
93
+ Cypress.log({
94
+ name: "mount",
95
+ message: [`<${name} ... />`],
96
+ });
97
+
98
+ // Return a `Cypress.Chainable` that returns whatever is idiomatic
99
+ // in the framework your mount adapter targets.
100
+ return cy.wrap(document.querySelector("#root"), { log: false });
101
+ }
102
+
103
+ // Setup Cypress lifecycle hooks. This tears down any styles
104
+ // injected by injectStylesBeforeElement, etc.
105
+ setupHooks();
106
+ ```
107
+
108
+ Usage:
109
+
110
+ ```ts
111
+ // User will generally register a `cy.mount` command in `cypress/support/component.js`:
112
+
113
+ import { mount } from '@package/cypress-web-components'
114
+
115
+ Cypress.Commands.add('mount', mount)
116
+
117
+ // Test
118
+ export class WebCounter extends HTMLElement {
119
+ constructor() {
120
+ super();
121
+ }
122
+
123
+ connectedCallback() {
124
+ this.innerHTML = `
125
+ <div>
126
+ <button>Counter</button>
127
+ </div>`;
128
+ }
129
+ }
130
+
131
+
132
+ describe('web-component.cy.ts', () => {
133
+ it('playground', () => {
134
+ cy.mount(WebCounter, {
135
+ styles: `
136
+ button {
137
+ background: lightblue;
138
+ color: white;
139
+ }
140
+ `
141
+ })
142
+ })
143
+ })
144
+ ```
145
+
146
+ For more robust, production ready examples, check out our first party adapters.
11
147
 
12
148
  ## Compatibility
13
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "10.9.0",
3
+ "version": "10.10.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -118,8 +118,8 @@
118
118
  },
119
119
  "buildInfo": {
120
120
  "commitBranch": "develop",
121
- "commitSha": "a75d3ec81f3405db6721a89875d89cdca0109013",
122
- "commitDate": "2022-09-27T02:16:48.000Z",
121
+ "commitSha": "53eef4fbd7e1caf32f0183cadbc0e4cf05524c34",
122
+ "commitDate": "2022-10-11T14:21:32.000Z",
123
123
  "stable": true
124
124
  },
125
125
  "description": "Cypress.io end to end testing tool",
@@ -1,3 +1,73 @@
1
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-11)
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
+
8
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
14
+
15
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-04)
16
+
17
+
18
+ ### Features
19
+
20
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
21
+
22
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-04)
23
+
24
+
25
+ ### Features
26
+
27
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
28
+
29
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-03)
30
+
31
+
32
+ ### Features
33
+
34
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
35
+
36
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-01)
37
+
38
+
39
+ ### Features
40
+
41
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
42
+
43
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30)
44
+
45
+
46
+ ### Features
47
+
48
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
49
+
50
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30)
51
+
52
+
53
+ ### Features
54
+
55
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
56
+
57
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30)
58
+
59
+
60
+ ### Features
61
+
62
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
63
+
64
+ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-29)
65
+
66
+
67
+ ### Features
68
+
69
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
70
+
1
71
  # [@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
72
 
3
73
 
@@ -1,3 +1,123 @@
1
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
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
+
13
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-06)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
19
+
20
+
21
+ ### Features
22
+
23
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
24
+
25
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-04)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
31
+
32
+
33
+ ### Features
34
+
35
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
36
+
37
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-04)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
43
+
44
+
45
+ ### Features
46
+
47
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
48
+
49
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-03)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
55
+
56
+
57
+ ### Features
58
+
59
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
60
+
61
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-01)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
67
+
68
+
69
+ ### Features
70
+
71
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
72
+
73
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30)
74
+
75
+
76
+ ### Bug Fixes
77
+
78
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
79
+
80
+
81
+ ### Features
82
+
83
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
84
+
85
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30)
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
91
+
92
+
93
+ ### Features
94
+
95
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
96
+
97
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
103
+
104
+
105
+ ### Features
106
+
107
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
108
+
109
+ # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-29)
110
+
111
+
112
+ ### Bug Fixes
113
+
114
+ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f))
115
+
116
+
117
+ ### Features
118
+
119
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
120
+
1
121
  # [@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
122
 
3
123
 
@@ -1,3 +1,11 @@
1
+ # [@cypress/svelte-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/svelte-v1.0.0...@cypress/svelte-v1.0.1) (2022-09-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * release svelte ([b86403f](https://github.com/cypress-io/cypress/commit/b86403fcbcc85ce5be1ca96bbf42357dd24c07dd))
7
+ * **svelte:** default mount log to true ([#23771](https://github.com/cypress-io/cypress/issues/23771)) ([96b03ab](https://github.com/cypress-io/cypress/commit/96b03abc74cd7b27ef4bbd9b66d9464c1f9fc2f2))
8
+
1
9
  # @cypress/svelte-v1.0.0 (2022-08-30)
2
10
 
3
11
 
package/vue/CHANGELOG.md CHANGED
@@ -1,3 +1,133 @@
1
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
7
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
8
+
9
+
10
+ ### Features
11
+
12
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
13
+
14
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-06)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
20
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
21
+
22
+
23
+ ### Features
24
+
25
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
26
+
27
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-04)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
33
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
34
+
35
+
36
+ ### Features
37
+
38
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
39
+
40
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-04)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
46
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
47
+
48
+
49
+ ### Features
50
+
51
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
52
+
53
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-03)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
59
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
60
+
61
+
62
+ ### Features
63
+
64
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
65
+
66
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-01)
67
+
68
+
69
+ ### Bug Fixes
70
+
71
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
72
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
73
+
74
+
75
+ ### Features
76
+
77
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
78
+
79
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30)
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
85
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
86
+
87
+
88
+ ### Features
89
+
90
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
91
+
92
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30)
93
+
94
+
95
+ ### Bug Fixes
96
+
97
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
98
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
99
+
100
+
101
+ ### Features
102
+
103
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
104
+
105
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30)
106
+
107
+
108
+ ### Bug Fixes
109
+
110
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
111
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
112
+
113
+
114
+ ### Features
115
+
116
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
117
+
118
+ # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-29)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5))
124
+ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4))
125
+
126
+
127
+ ### Features
128
+
129
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
130
+
1
131
  # [@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
132
 
3
133
 
package/vue2/CHANGELOG.md CHANGED
@@ -1,3 +1,73 @@
1
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-11)
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
+
8
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
14
+
15
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-04)
16
+
17
+
18
+ ### Features
19
+
20
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
21
+
22
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-04)
23
+
24
+
25
+ ### Features
26
+
27
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
28
+
29
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-03)
30
+
31
+
32
+ ### Features
33
+
34
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
35
+
36
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-01)
37
+
38
+
39
+ ### Features
40
+
41
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
42
+
43
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30)
44
+
45
+
46
+ ### Features
47
+
48
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
49
+
50
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30)
51
+
52
+
53
+ ### Features
54
+
55
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
56
+
57
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30)
58
+
59
+
60
+ ### Features
61
+
62
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
63
+
64
+ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-29)
65
+
66
+
67
+ ### Features
68
+
69
+ * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
70
+
1
71
  # [@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
72
 
3
73
 
@@ -20034,11 +20034,11 @@ const resetStoreVM = (Vue, { store }) => {
20034
20034
  * @see https://github.com/cypress-io/cypress/issues/7910
20035
20035
  */
20036
20036
  function failTestOnVueError(err, vm, info) {
20037
- console.error(`Vue error`);
20038
- console.error(err);
20039
- console.error('component:', vm);
20040
- console.error('info:', info);
20041
- window.top.onerror(err);
20037
+ // Vue 2 try catches the error-handler so push the error to be caught outside
20038
+ // of the handler.
20039
+ setTimeout(() => {
20040
+ throw err;
20041
+ });
20042
20042
  }
20043
20043
  function registerAutoDestroy($destroy) {
20044
20044
  Cypress.on('test:before:run', () => {
@@ -20026,11 +20026,11 @@ const resetStoreVM = (Vue, { store }) => {
20026
20026
  * @see https://github.com/cypress-io/cypress/issues/7910
20027
20027
  */
20028
20028
  function failTestOnVueError(err, vm, info) {
20029
- console.error(`Vue error`);
20030
- console.error(err);
20031
- console.error('component:', vm);
20032
- console.error('info:', info);
20033
- window.top.onerror(err);
20029
+ // Vue 2 try catches the error-handler so push the error to be caught outside
20030
+ // of the handler.
20031
+ setTimeout(() => {
20032
+ throw err;
20033
+ });
20034
20034
  }
20035
20035
  function registerAutoDestroy($destroy) {
20036
20036
  Cypress.on('test:before:run', () => {