cypress 12.14.0 → 12.16.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": "12.
|
3
|
+
"version": "12.16.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": "
|
122
|
-
"commitDate": "2023-06-
|
121
|
+
"commitSha": "4aacfaa5c18344ccaa9f6b8a2f3106fe269f4b0d",
|
122
|
+
"commitDate": "2023-06-26T13:45:58.000Z",
|
123
123
|
"stable": true
|
124
124
|
},
|
125
125
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
@@ -3,8 +3,8 @@ type EventEmitter2 = import("eventemitter2").EventEmitter2
|
|
3
3
|
|
4
4
|
interface CyEventEmitter extends Omit<EventEmitter2, 'waitFor'> {
|
5
5
|
proxyTo: (cy: Cypress.cy) => null
|
6
|
-
emitMap: (eventName: string, args: any[]) => Array<(...args: any[]) => any>
|
7
|
-
emitThen: (eventName: string, args: any[]) => Bluebird.BluebirdStatic
|
6
|
+
emitMap: (eventName: string, ...args: any[]) => Array<(...args: any[]) => any>
|
7
|
+
emitThen: (eventName: string, ...args: any[]) => Bluebird.BluebirdStatic
|
8
8
|
}
|
9
9
|
|
10
10
|
// Copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/events.d.ts
|
package/types/cypress.d.ts
CHANGED
@@ -2672,6 +2672,8 @@ declare namespace Cypress {
|
|
2672
2672
|
force: boolean
|
2673
2673
|
}
|
2674
2674
|
|
2675
|
+
type experimentalCspAllowedDirectives = 'default-src' | 'child-src' | 'frame-src' | 'script-src' | 'script-src-elem' | 'form-action'
|
2676
|
+
|
2675
2677
|
type scrollBehaviorOptions = false | 'center' | 'top' | 'bottom' | 'nearest'
|
2676
2678
|
|
2677
2679
|
/**
|
@@ -3004,10 +3006,13 @@ declare namespace Cypress {
|
|
3004
3006
|
*/
|
3005
3007
|
trashAssetsBeforeRuns: boolean
|
3006
3008
|
/**
|
3007
|
-
* The quality setting for the video compression, in Constant Rate Factor (CRF).
|
3009
|
+
* The quality setting for the video compression, in Constant Rate Factor (CRF).
|
3010
|
+
* Enable compression by passing true to use the default CRF of 32.
|
3011
|
+
* Compress at custom CRF by passing a number between 1 and 51, where a lower value results in better quality (at the expense of a higher file size).
|
3012
|
+
* Disable compression by passing false or 0.
|
3008
3013
|
* @default 32
|
3009
3014
|
*/
|
3010
|
-
videoCompression: number |
|
3015
|
+
videoCompression: number | boolean
|
3011
3016
|
/**
|
3012
3017
|
* Whether Cypress will record a video of the test run when running headlessly.
|
3013
3018
|
* @default true
|
@@ -3048,6 +3053,19 @@ declare namespace Cypress {
|
|
3048
3053
|
* @default 'top'
|
3049
3054
|
*/
|
3050
3055
|
scrollBehavior: scrollBehaviorOptions
|
3056
|
+
/**
|
3057
|
+
* Indicates whether Cypress should allow CSP header directives from the application under test.
|
3058
|
+
* - When this option is set to `false`, Cypress will strip the entire CSP header.
|
3059
|
+
* - When this option is set to `true`, Cypress will only to strip directives that would interfere
|
3060
|
+
* with or inhibit Cypress functionality.
|
3061
|
+
* - When this option to an array of allowable directives (`[ 'default-src', ... ]`), the directives
|
3062
|
+
* specified will remain in the response headers.
|
3063
|
+
*
|
3064
|
+
* Please see the documentation for more information.
|
3065
|
+
* @see https://on.cypress.io/experiments#Experimental-CSP-Allow-List
|
3066
|
+
* @default false
|
3067
|
+
*/
|
3068
|
+
experimentalCspAllowList: boolean | experimentalCspAllowedDirectives[],
|
3051
3069
|
/**
|
3052
3070
|
* Allows listening to the `before:run`, `after:run`, `before:spec`, and `after:spec` events in the plugins file during interactive mode.
|
3053
3071
|
* @default false
|
@@ -3059,7 +3077,7 @@ declare namespace Cypress {
|
|
3059
3077
|
* Please see https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity.
|
3060
3078
|
* This option has no impact on experimentalSourceRewriting and is only used with the
|
3061
3079
|
* non-experimental source rewriter.
|
3062
|
-
* @see https://on.cypress.io/
|
3080
|
+
* @see https://on.cypress.io/experiments#Configuration
|
3063
3081
|
*/
|
3064
3082
|
experimentalModifyObstructiveThirdPartyCode: boolean
|
3065
3083
|
/**
|
@@ -3069,6 +3087,7 @@ declare namespace Cypress {
|
|
3069
3087
|
* navigations, and will require the use of cy.origin(). This option takes an array of
|
3070
3088
|
* strings/string globs.
|
3071
3089
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/domain
|
3090
|
+
* @see https://on.cypress.io/experiments#Experimental-Skip-Domain-Injection
|
3072
3091
|
* @default null
|
3073
3092
|
*/
|
3074
3093
|
experimentalSkipDomainInjection: string[] | null
|