cypress 9.6.1 → 9.7.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.7.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -66,8 +66,8 @@
|
|
66
66
|
"types": "types",
|
67
67
|
"buildInfo": {
|
68
68
|
"commitBranch": "develop",
|
69
|
-
"commitSha": "
|
70
|
-
"commitDate": "2022-05-
|
69
|
+
"commitSha": "884e8e963b917eb96922517bbb314446b5495658",
|
70
|
+
"commitDate": "2022-05-23T15:08:23.000Z",
|
71
71
|
"stable": true
|
72
72
|
},
|
73
73
|
"description": "Cypress.io end to end testing tool",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Cypress, cy, Log inherits EventEmitter.
|
2
2
|
type EventEmitter2 = import("eventemitter2").EventEmitter2
|
3
3
|
|
4
|
-
interface
|
4
|
+
interface CyEventEmitter extends Omit<EventEmitter2, 'waitFor'> {
|
5
5
|
proxyTo: (cy: Cypress.cy) => null
|
6
6
|
emitMap: (eventName: string, args: any[]) => Array<(...args: any[]) => any>
|
7
7
|
emitThen: (eventName: string, args: any[]) => Bluebird.BluebirdStatic
|
@@ -7,7 +7,7 @@ cy.get('button').click()
|
|
7
7
|
cy.get('.result').contains('Expected text')
|
8
8
|
```
|
9
9
|
*/
|
10
|
-
declare const cy: Cypress.cy &
|
10
|
+
declare const cy: Cypress.cy & CyEventEmitter
|
11
11
|
|
12
12
|
/**
|
13
13
|
* Global variable `Cypress` holds common utilities and constants.
|
@@ -19,4 +19,4 @@ Cypress.version // => "1.4.0"
|
|
19
19
|
Cypress._ // => Lodash _
|
20
20
|
```
|
21
21
|
*/
|
22
|
-
declare const Cypress: Cypress.Cypress &
|
22
|
+
declare const Cypress: Cypress.Cypress & CyEventEmitter
|
package/types/cypress.d.ts
CHANGED
@@ -482,7 +482,15 @@ declare namespace Cypress {
|
|
482
482
|
*/
|
483
483
|
Cookies: {
|
484
484
|
debug(enabled: boolean, options?: Partial<DebugOptions>): void
|
485
|
+
/**
|
486
|
+
* @deprecated Use `cy.session()` instead.
|
487
|
+
* @see https://on.cypress.io/session
|
488
|
+
*/
|
485
489
|
preserveOnce(...names: string[]): void
|
490
|
+
/**
|
491
|
+
* @deprecated Use `cy.session()` instead.
|
492
|
+
* @see https://on.cypress.io/session
|
493
|
+
*/
|
486
494
|
defaults(options: Partial<CookieDefaults>): CookieDefaults
|
487
495
|
}
|
488
496
|
|