cypress 16.1.0 → 16.1.1
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 +3 -3
- package/react/package.json +1 -1
- package/react/react/package.json +1 -1
- package/types/cypress.d.ts +125 -9
- package/vue/package.json +1 -1
- package/vue/vue/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node dist/index.js --exec install",
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
},
|
|
133
133
|
"buildInfo": {
|
|
134
134
|
"commitBranch": "develop",
|
|
135
|
-
"commitSha": "
|
|
136
|
-
"commitDate": "2026-09-
|
|
135
|
+
"commitSha": "727c47ba3b3b44f025a7b5c2b050bee4e7313e26",
|
|
136
|
+
"commitDate": "2026-09-28T20:25:50.000Z",
|
|
137
137
|
"stable": true
|
|
138
138
|
},
|
|
139
139
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
package/react/package.json
CHANGED
package/react/react/package.json
CHANGED
package/types/cypress.d.ts
CHANGED
|
@@ -1124,6 +1124,12 @@ declare namespace Cypress {
|
|
|
1124
1124
|
* * `setInterval`
|
|
1125
1125
|
* * `clearInterval`
|
|
1126
1126
|
* * `Date` Objects
|
|
1127
|
+
* * `requestAnimationFrame`
|
|
1128
|
+
* * `cancelAnimationFrame`
|
|
1129
|
+
* * `requestIdleCallback`
|
|
1130
|
+
* * `cancelIdleCallback`
|
|
1131
|
+
* * `performance`
|
|
1132
|
+
* * `Intl`
|
|
1127
1133
|
*
|
|
1128
1134
|
* The clock starts at the unix epoch (timestamp of 0).
|
|
1129
1135
|
* This means that when you instantiate new Date in your application,
|
|
@@ -1168,13 +1174,14 @@ declare namespace Cypress {
|
|
|
1168
1174
|
clock(now: number | Date, options?: Loggable): Chainable<Clock>
|
|
1169
1175
|
/**
|
|
1170
1176
|
* Mocks global clock but only overrides specific functions.
|
|
1177
|
+
* Passing `null` for `now` starts the clock at the unix epoch (timestamp of 0).
|
|
1171
1178
|
*
|
|
1172
1179
|
* @see https://on.cypress.io/clock
|
|
1173
1180
|
* @example
|
|
1174
1181
|
* // keep current date but override "setTimeout" and "clearTimeout"
|
|
1175
1182
|
* cy.clock(null, ['setTimeout', 'clearTimeout'])
|
|
1176
1183
|
*/
|
|
1177
|
-
clock(now: number | Date, functions?:
|
|
1184
|
+
clock(now: number | Date | null, functions?: ClockFunction[], options?: Loggable): Chainable<Clock>
|
|
1178
1185
|
/**
|
|
1179
1186
|
* Mocks global clock and all functions.
|
|
1180
1187
|
*
|
|
@@ -1245,7 +1252,7 @@ declare namespace Cypress {
|
|
|
1245
1252
|
*
|
|
1246
1253
|
* @see https://on.cypress.io/dblclick
|
|
1247
1254
|
*/
|
|
1248
|
-
dblclick(options?: Partial<
|
|
1255
|
+
dblclick(options?: Partial<DblClickOptions>): Chainable<Subject>
|
|
1249
1256
|
/**
|
|
1250
1257
|
* Double-click a DOM element at specific corner / side.
|
|
1251
1258
|
*
|
|
@@ -1255,7 +1262,7 @@ declare namespace Cypress {
|
|
|
1255
1262
|
* @example
|
|
1256
1263
|
* cy.get('button').dblclick('topRight')
|
|
1257
1264
|
*/
|
|
1258
|
-
dblclick(position: PositionType, options?: Partial<
|
|
1265
|
+
dblclick(position: PositionType, options?: Partial<DblClickOptions>): Chainable<Subject>
|
|
1259
1266
|
/**
|
|
1260
1267
|
* Double-click a DOM element at specific coordinates
|
|
1261
1268
|
*
|
|
@@ -1269,7 +1276,7 @@ declare namespace Cypress {
|
|
|
1269
1276
|
cy.get('button').dblclick(15, 40)
|
|
1270
1277
|
```
|
|
1271
1278
|
*/
|
|
1272
|
-
dblclick(x: number, y: number, options?: Partial<
|
|
1279
|
+
dblclick(x: number, y: number, options?: Partial<DblClickOptions>): Chainable<Subject>
|
|
1273
1280
|
/**
|
|
1274
1281
|
* Right-click a DOM element.
|
|
1275
1282
|
*
|
|
@@ -1331,8 +1338,19 @@ declare namespace Cypress {
|
|
|
1331
1338
|
*
|
|
1332
1339
|
* @see https://on.cypress.io/each
|
|
1333
1340
|
*/
|
|
1334
|
-
each<E extends Node = HTMLElement>(fn: (element: JQuery<E>, index: number, $list: E
|
|
1335
|
-
each(fn: (item: any, index: number, $list: any
|
|
1341
|
+
each<E extends Node = HTMLElement>(fn: (element: JQuery<E>, index: number, $list: JQuery<E>) => void): Chainable<JQuery<E>> // Can't properly infer type without breaking down Chainable
|
|
1342
|
+
each(fn: (item: any, index: number, $list: any) => void): Chainable<Subject>
|
|
1343
|
+
/**
|
|
1344
|
+
* Iterate through an array like structure (arrays or objects with a length property).
|
|
1345
|
+
*
|
|
1346
|
+
* @see https://on.cypress.io/each
|
|
1347
|
+
* @example
|
|
1348
|
+
* cy.getCookies().each({ timeout: 4000 }, (cookie) => {
|
|
1349
|
+
* // work with each cookie
|
|
1350
|
+
* })
|
|
1351
|
+
*/
|
|
1352
|
+
each<E extends Node = HTMLElement>(options: Partial<Timeoutable>, fn: (element: JQuery<E>, index: number, $list: JQuery<E>) => void): Chainable<JQuery<E>>
|
|
1353
|
+
each(options: Partial<Timeoutable>, fn: (item: any, index: number, $list: any) => void): Chainable<Subject>
|
|
1336
1354
|
|
|
1337
1355
|
/**
|
|
1338
1356
|
* Get A DOM element at a specific index in an array of elements.
|
|
@@ -1644,6 +1662,24 @@ declare namespace Cypress {
|
|
|
1644
1662
|
* @see https://on.cypress.io/nextuntil
|
|
1645
1663
|
*/
|
|
1646
1664
|
nextUntil<E extends Node = HTMLElement>(element: E | JQuery<E>, filter?: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1665
|
+
/**
|
|
1666
|
+
* Get all following siblings of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1667
|
+
*
|
|
1668
|
+
* @see https://on.cypress.io/nextuntil
|
|
1669
|
+
*/
|
|
1670
|
+
nextUntil<K extends keyof HTMLElementTagNameMap>(selector: K, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<HTMLElementTagNameMap[K]>>
|
|
1671
|
+
/**
|
|
1672
|
+
* Get all following siblings of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1673
|
+
*
|
|
1674
|
+
* @see https://on.cypress.io/nextuntil
|
|
1675
|
+
*/
|
|
1676
|
+
nextUntil<E extends Node = HTMLElement>(selector: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1677
|
+
/**
|
|
1678
|
+
* Get all following siblings of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1679
|
+
*
|
|
1680
|
+
* @see https://on.cypress.io/nextuntil
|
|
1681
|
+
*/
|
|
1682
|
+
nextUntil<E extends Node = HTMLElement>(element: E | JQuery<E>, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1647
1683
|
|
|
1648
1684
|
/**
|
|
1649
1685
|
* Filter DOM element(s) from a set of DOM elements. Opposite of `.filter()`
|
|
@@ -1756,6 +1792,24 @@ declare namespace Cypress {
|
|
|
1756
1792
|
* @see https://on.cypress.io/parentsuntil
|
|
1757
1793
|
*/
|
|
1758
1794
|
parentsUntil<E extends Node = HTMLElement>(element: E | JQuery<E>, filter?: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1795
|
+
/**
|
|
1796
|
+
* Get all ancestors of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1797
|
+
*
|
|
1798
|
+
* @see https://on.cypress.io/parentsuntil
|
|
1799
|
+
*/
|
|
1800
|
+
parentsUntil<K extends keyof HTMLElementTagNameMap>(selector: K, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<HTMLElementTagNameMap[K]>>
|
|
1801
|
+
/**
|
|
1802
|
+
* Get all ancestors of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1803
|
+
*
|
|
1804
|
+
* @see https://on.cypress.io/parentsuntil
|
|
1805
|
+
*/
|
|
1806
|
+
parentsUntil<E extends Node = HTMLElement>(selector: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1807
|
+
/**
|
|
1808
|
+
* Get all ancestors of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1809
|
+
*
|
|
1810
|
+
* @see https://on.cypress.io/parentsuntil
|
|
1811
|
+
*/
|
|
1812
|
+
parentsUntil<E extends Node = HTMLElement>(element: E | JQuery<E>, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1759
1813
|
|
|
1760
1814
|
/**
|
|
1761
1815
|
* Stop cy commands from running and allow interaction with the application under test. You can then "resume" running all commands or choose to step through the "next" commands from the Command Log.
|
|
@@ -1843,6 +1897,24 @@ declare namespace Cypress {
|
|
|
1843
1897
|
* @see https://on.cypress.io/prevuntil
|
|
1844
1898
|
*/
|
|
1845
1899
|
prevUntil<E extends Node = HTMLElement>(element: E | JQuery<E>, filter?: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1900
|
+
/**
|
|
1901
|
+
* Get all previous siblings of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1902
|
+
*
|
|
1903
|
+
* @see https://on.cypress.io/prevuntil
|
|
1904
|
+
*/
|
|
1905
|
+
prevUntil<K extends keyof HTMLElementTagNameMap>(selector: K, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<HTMLElementTagNameMap[K]>>
|
|
1906
|
+
/**
|
|
1907
|
+
* Get all previous siblings of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1908
|
+
*
|
|
1909
|
+
* @see https://on.cypress.io/prevuntil
|
|
1910
|
+
*/
|
|
1911
|
+
prevUntil<E extends Node = HTMLElement>(selector: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1912
|
+
/**
|
|
1913
|
+
* Get all previous siblings of each DOM element in a set of matched DOM elements up to, but not including, the element provided, without a filter.
|
|
1914
|
+
*
|
|
1915
|
+
* @see https://on.cypress.io/prevuntil
|
|
1916
|
+
*/
|
|
1917
|
+
prevUntil<E extends Node = HTMLElement>(element: E | JQuery<E>, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
|
|
1846
1918
|
/**
|
|
1847
1919
|
* An AI-powered command that generates Cypress commands from natural language test steps.
|
|
1848
1920
|
*
|
|
@@ -2175,6 +2247,16 @@ declare namespace Cypress {
|
|
|
2175
2247
|
* })
|
|
2176
2248
|
*/
|
|
2177
2249
|
spread(fn: (...args: any[]) => void): Chainable<Subject>
|
|
2250
|
+
/**
|
|
2251
|
+
* Expand an array into multiple arguments.
|
|
2252
|
+
* @see https://on.cypress.io/spread
|
|
2253
|
+
* @example
|
|
2254
|
+
* cy.getCookies().spread({ timeout: 4000 }, (cookie1, cookie2, cookie3) => {
|
|
2255
|
+
* // each cookie is now an individual argument
|
|
2256
|
+
* })
|
|
2257
|
+
*/
|
|
2258
|
+
spread<S extends object | any[] | string | number | boolean>(options: Partial<Timeoutable>, fn: (...args: any[]) => S): Chainable<S>
|
|
2259
|
+
spread(options: Partial<Timeoutable>, fn: (...args: any[]) => void): Chainable<Subject>
|
|
2178
2260
|
|
|
2179
2261
|
/**
|
|
2180
2262
|
* Run a task in Node via the plugins file.
|
|
@@ -2892,6 +2974,18 @@ declare namespace Cypress {
|
|
|
2892
2974
|
cmdKey: boolean
|
|
2893
2975
|
}
|
|
2894
2976
|
|
|
2977
|
+
/**
|
|
2978
|
+
* Object to change the default behavior of .dblclick().
|
|
2979
|
+
*/
|
|
2980
|
+
interface DblClickOptions extends ClickOptions {
|
|
2981
|
+
/**
|
|
2982
|
+
* Serially double click multiple elements
|
|
2983
|
+
*
|
|
2984
|
+
* @default true
|
|
2985
|
+
*/
|
|
2986
|
+
multiple: boolean
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2895
2989
|
interface CookieOptions extends Partial<Loggable & Timeoutable> {
|
|
2896
2990
|
/**
|
|
2897
2991
|
* Domain to set cookies on or get cookies from
|
|
@@ -3857,9 +3951,11 @@ declare namespace Cypress {
|
|
|
3857
3951
|
/**
|
|
3858
3952
|
* Amount to scroll after the element has been scrolled into view
|
|
3859
3953
|
*
|
|
3954
|
+
* An axis that is left out defaults to 0, so either key may be given alone.
|
|
3955
|
+
*
|
|
3860
3956
|
* @default {top: 0, left: 0}
|
|
3861
3957
|
*/
|
|
3862
|
-
offset: Offset
|
|
3958
|
+
offset: Partial<Offset>
|
|
3863
3959
|
}
|
|
3864
3960
|
|
|
3865
3961
|
interface SelectOptions extends Loggable, Timeoutable, Forceable {
|
|
@@ -6305,7 +6401,9 @@ declare namespace Cypress {
|
|
|
6305
6401
|
}
|
|
6306
6402
|
|
|
6307
6403
|
interface CypressError extends Error {
|
|
6308
|
-
|
|
6404
|
+
// an uncaught exception carries both the originating error's docs url and
|
|
6405
|
+
// Cypress's own, so this is an array whenever more than one applies
|
|
6406
|
+
docsUrl?: string | string[]
|
|
6309
6407
|
codeFrame?: CodeFrame
|
|
6310
6408
|
}
|
|
6311
6409
|
|
|
@@ -6504,6 +6602,23 @@ declare namespace Cypress {
|
|
|
6504
6602
|
create(): CommandQueue
|
|
6505
6603
|
}
|
|
6506
6604
|
|
|
6605
|
+
/**
|
|
6606
|
+
* Names of the global functions that `cy.clock()` can override in the browser.
|
|
6607
|
+
*/
|
|
6608
|
+
type ClockFunction =
|
|
6609
|
+
| 'setTimeout'
|
|
6610
|
+
| 'clearTimeout'
|
|
6611
|
+
| 'setInterval'
|
|
6612
|
+
| 'clearInterval'
|
|
6613
|
+
| 'Date'
|
|
6614
|
+
| 'requestAnimationFrame'
|
|
6615
|
+
| 'cancelAnimationFrame'
|
|
6616
|
+
| 'requestIdleCallback'
|
|
6617
|
+
| 'cancelIdleCallback'
|
|
6618
|
+
| 'performance'
|
|
6619
|
+
| 'Intl'
|
|
6620
|
+
| 'queueMicrotask'
|
|
6621
|
+
|
|
6507
6622
|
/**
|
|
6508
6623
|
* The clock starts at the unix epoch (timestamp of 0). This means that when you instantiate new Date in your application, it will have a time of January 1st, 1970.
|
|
6509
6624
|
*/
|
|
@@ -6512,9 +6627,10 @@ declare namespace Cypress {
|
|
|
6512
6627
|
* Move the clock the specified number of `milliseconds`.
|
|
6513
6628
|
* Any timers within the affected range of time will be called.
|
|
6514
6629
|
* @param time Number in ms to advance the clock
|
|
6630
|
+
* @returns The clock's new `now`, in ms since the unix epoch
|
|
6515
6631
|
* @see https://on.cypress.io/tick
|
|
6516
6632
|
*/
|
|
6517
|
-
tick(time: number):
|
|
6633
|
+
tick(time: number): number
|
|
6518
6634
|
/**
|
|
6519
6635
|
* Restore all overridden native functions.
|
|
6520
6636
|
* This is automatically called between tests, so should not generally be needed.
|
package/vue/package.json
CHANGED
package/vue/vue/package.json
CHANGED