cypress 13.3.2 → 13.4.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/types/cypress.d.ts +25 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "13.3.2",
3
+ "version": "13.4.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -135,12 +135,12 @@
135
135
  },
136
136
  "buildInfo": {
137
137
  "commitBranch": "develop",
138
- "commitSha": "04a1156ccd6093441c17ea04c98570ef8470a239",
139
- "commitDate": "2023-10-18T15:16:19.000Z",
138
+ "commitSha": "5a95541c3c4e48bfc67a54642abc949576fa6f05",
139
+ "commitDate": "2023-10-30T13:42:14.000Z",
140
140
  "stable": true
141
141
  },
142
142
  "description": "Cypress is a next generation front end testing tool built for the modern web",
143
- "homepage": "https://github.com/cypress-io/cypress",
143
+ "homepage": "https://cypress.io",
144
144
  "license": "MIT",
145
145
  "bugs": {
146
146
  "url": "https://github.com/cypress-io/cypress/issues"
@@ -2851,6 +2851,30 @@ declare namespace Cypress {
2851
2851
  certs: PEMCert[] | PFXCert[]
2852
2852
  }
2853
2853
 
2854
+ type RetryStrategyWithModeSpecs = RetryStrategy & {
2855
+ openMode: boolean; // defaults to false
2856
+ runMode: boolean; // defaults to true
2857
+ }
2858
+
2859
+ type RetryStrategy =
2860
+ | RetryStrategyDetectFlakeAndPassOnThresholdType
2861
+ | RetryStrategyDetectFlakeButAlwaysFailType
2862
+
2863
+ interface RetryStrategyDetectFlakeAndPassOnThresholdType {
2864
+ experimentalStrategy: "detect-flake-and-pass-on-threshold"
2865
+ experimentalOptions?: {
2866
+ maxRetries: number; // defaults to 2 if experimentalOptions is not provided, must be a whole number > 0
2867
+ passesRequired: number; // defaults to 2 if experimentalOptions is not provided, must be a whole number > 0 and <= maxRetries
2868
+ }
2869
+ }
2870
+
2871
+ interface RetryStrategyDetectFlakeButAlwaysFailType {
2872
+ experimentalStrategy: "detect-flake-but-always-fail"
2873
+ experimentalOptions?: {
2874
+ maxRetries: number; // defaults to 2 if experimentalOptions is not provided, must be a whole number > 0
2875
+ stopIfAnyPassed: boolean; // defaults to false if experimentalOptions is not provided
2876
+ }
2877
+ }
2854
2878
  interface ResolvedConfigOptions<ComponentDevServerOpts = any> {
2855
2879
  /**
2856
2880
  * Url used as prefix for [cy.visit()](https://on.cypress.io/visit) or [cy.request()](https://on.cypress.io/request) command's url
@@ -3122,7 +3146,7 @@ declare namespace Cypress {
3122
3146
  * To enable test retries only in runMode, set e.g. `{ openMode: null, runMode: 2 }`
3123
3147
  * @default null
3124
3148
  */
3125
- retries: Nullable<number | { runMode?: Nullable<number>, openMode?: Nullable<number> }>
3149
+ retries: Nullable<number | ({ runMode?: Nullable<number>, openMode?: Nullable<number> }) | RetryStrategyWithModeSpecs>
3126
3150
  /**
3127
3151
  * Enables including elements within the shadow DOM when using querying
3128
3152
  * commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.config.{js,ts,mjs,cjs},