cypress 15.18.1 → 15.19.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 +3 -3
- package/types/cy-chai.d.ts +41 -0
- package/types/cypress.d.ts +42 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.19.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node dist/index.js --exec install",
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
},
|
|
139
139
|
"buildInfo": {
|
|
140
140
|
"commitBranch": "develop",
|
|
141
|
-
"commitSha": "
|
|
142
|
-
"commitDate": "2026-07-
|
|
141
|
+
"commitSha": "d19a47c2421485e2352b89e3167a0a3237c2d21c",
|
|
142
|
+
"commitDate": "2026-07-21T04:31:55.000Z",
|
|
143
143
|
"stable": true
|
|
144
144
|
},
|
|
145
145
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
package/types/cy-chai.d.ts
CHANGED
|
@@ -6,6 +6,17 @@ declare namespace Chai {
|
|
|
6
6
|
html(html: string): Assertion
|
|
7
7
|
text(text: string): Assertion
|
|
8
8
|
value(text: string): Assertion
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Asserts that the target contains one of the values in the given list.
|
|
12
|
+
* Available when `.oneOf` is chained with `.contain` or `.include`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* expect('Today is sunny').to.contain.oneOf(['sunny', 'cloudy'])
|
|
16
|
+
* expect([1, 2, 3]).to.contain.oneOf([3, 4, 5])
|
|
17
|
+
* @see http://chaijs.com/api/bdd/#method_oneof
|
|
18
|
+
*/
|
|
19
|
+
oneOf(list: ReadonlyArray<any>, message?: string): Assertion
|
|
9
20
|
}
|
|
10
21
|
|
|
11
22
|
interface Assertion {
|
|
@@ -28,5 +39,35 @@ declare namespace Chai {
|
|
|
28
39
|
* @see http://chaijs.com/plugins/chai-jquery/#focus
|
|
29
40
|
*/
|
|
30
41
|
focused: Assertion
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Asserts that the target is neither `null` nor `undefined`. Alias of `.exist`.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* expect(0).to.exists
|
|
48
|
+
* expect('').to.exists
|
|
49
|
+
* @see http://chaijs.com/api/bdd/#method_exist
|
|
50
|
+
*/
|
|
51
|
+
exists: Assertion
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Asserts that the target is a number or a date greater than or equal to the
|
|
55
|
+
* given number or date. Alias of `.least` (`.gte`).
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* expect(2).to.be.greaterThanOrEqual(1)
|
|
59
|
+
* @see http://chaijs.com/api/bdd/#method_least
|
|
60
|
+
*/
|
|
61
|
+
greaterThanOrEqual: NumberComparer
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Asserts that the target is a number or a date less than or equal to the
|
|
65
|
+
* given number or date. Alias of `.most` (`.lte`).
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* expect(1).to.be.lessThanOrEqual(2)
|
|
69
|
+
* @see http://chaijs.com/api/bdd/#method_most
|
|
70
|
+
*/
|
|
71
|
+
lessThanOrEqual: NumberComparer
|
|
31
72
|
}
|
|
32
73
|
}
|
package/types/cypress.d.ts
CHANGED
|
@@ -3039,7 +3039,7 @@ declare namespace Cypress {
|
|
|
3039
3039
|
reporter: string
|
|
3040
3040
|
/**
|
|
3041
3041
|
* Some reporters accept [reporterOptions](https://on.cypress.io/reporters) that customize their behavior
|
|
3042
|
-
* @default
|
|
3042
|
+
* @default null
|
|
3043
3043
|
*/
|
|
3044
3044
|
reporterOptions: { [key: string]: any }
|
|
3045
3045
|
/**
|
|
@@ -3184,7 +3184,7 @@ declare namespace Cypress {
|
|
|
3184
3184
|
* Enable compression by passing true to use the default CRF of 32.
|
|
3185
3185
|
* 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).
|
|
3186
3186
|
* Disable compression by passing false or 0.
|
|
3187
|
-
* @default
|
|
3187
|
+
* @default false
|
|
3188
3188
|
*/
|
|
3189
3189
|
videoCompression: number | boolean
|
|
3190
3190
|
/**
|
|
@@ -4299,6 +4299,16 @@ declare namespace Cypress {
|
|
|
4299
4299
|
* @see https://on.cypress.io/assertions
|
|
4300
4300
|
*/
|
|
4301
4301
|
(chainer: 'be.gte', value: number): Chainable<Subject>
|
|
4302
|
+
/**
|
|
4303
|
+
* Asserts that the target is a number or a `n` date greater than or equal to the given number or date n respectively.
|
|
4304
|
+
* However, it's often best to assert that the target is equal to its expected value.
|
|
4305
|
+
* @example
|
|
4306
|
+
* cy.wrap(6).should('be.greaterThanOrEqual', 5)
|
|
4307
|
+
* @alias least
|
|
4308
|
+
* @see http://chaijs.com/api/bdd/#method_least
|
|
4309
|
+
* @see https://on.cypress.io/assertions
|
|
4310
|
+
*/
|
|
4311
|
+
(chainer: 'be.greaterThanOrEqual', value: number): Chainable<Subject>
|
|
4302
4312
|
/**
|
|
4303
4313
|
* Asserts that the target is a number or a `n` date less than or equal to the given number or date n respectively.
|
|
4304
4314
|
* However, it's often best to assert that the target is equal to its expected value.
|
|
@@ -4329,6 +4339,16 @@ declare namespace Cypress {
|
|
|
4329
4339
|
* @see https://on.cypress.io/assertions
|
|
4330
4340
|
*/
|
|
4331
4341
|
(chainer: 'be.lte', value: number): Chainable<Subject>
|
|
4342
|
+
/**
|
|
4343
|
+
* Asserts that the target is a number or a date less than or equal to the given number or date n respectively.
|
|
4344
|
+
* However, it's often best to assert that the target is equal to its expected value.
|
|
4345
|
+
* @example
|
|
4346
|
+
* cy.wrap(4).should('be.lessThanOrEqual', 5)
|
|
4347
|
+
* @alias most
|
|
4348
|
+
* @see http://chaijs.com/api/bdd/#method_most
|
|
4349
|
+
* @see https://on.cypress.io/assertions
|
|
4350
|
+
*/
|
|
4351
|
+
(chainer: 'be.lessThanOrEqual', value: number): Chainable<Subject>
|
|
4332
4352
|
/**
|
|
4333
4353
|
* Asserts that the target is loosely (`==`) equal to `true`. However, it's often best to assert that the target is strictly (`===`) or deeply equal to its expected value.
|
|
4334
4354
|
* @example
|
|
@@ -4908,6 +4928,16 @@ declare namespace Cypress {
|
|
|
4908
4928
|
* @see https://on.cypress.io/assertions
|
|
4909
4929
|
*/
|
|
4910
4930
|
(chainer: 'not.be.gte', value: number): Chainable<Subject>
|
|
4931
|
+
/**
|
|
4932
|
+
* Asserts that the target is not a number or a `n` date greater than or equal to the given number or date n respectively.
|
|
4933
|
+
* However, it's often best to assert that the target is equal to its expected value.
|
|
4934
|
+
* @example
|
|
4935
|
+
* cy.wrap(6).should('not.be.greaterThanOrEqual', 7)
|
|
4936
|
+
* @alias least
|
|
4937
|
+
* @see http://chaijs.com/api/bdd/#method_least
|
|
4938
|
+
* @see https://on.cypress.io/assertions
|
|
4939
|
+
*/
|
|
4940
|
+
(chainer: 'not.be.greaterThanOrEqual', value: number): Chainable<Subject>
|
|
4911
4941
|
/**
|
|
4912
4942
|
* Asserts that the target is not a number or a `n` date less than or equal to the given number or date n respectively.
|
|
4913
4943
|
* However, it's often best to assert that the target is equal to its expected value.
|
|
@@ -4938,6 +4968,16 @@ declare namespace Cypress {
|
|
|
4938
4968
|
* @see https://on.cypress.io/assertions
|
|
4939
4969
|
*/
|
|
4940
4970
|
(chainer: 'not.be.lte', value: number): Chainable<Subject>
|
|
4971
|
+
/**
|
|
4972
|
+
* Asserts that the target is not a number or a date less than or equal to the given number or date n respectively.
|
|
4973
|
+
* However, it's often best to assert that the target is equal to its expected value.
|
|
4974
|
+
* @example
|
|
4975
|
+
* cy.wrap(4).should('not.be.lessThanOrEqual', 3)
|
|
4976
|
+
* @alias most
|
|
4977
|
+
* @see http://chaijs.com/api/bdd/#method_most
|
|
4978
|
+
* @see https://on.cypress.io/assertions
|
|
4979
|
+
*/
|
|
4980
|
+
(chainer: 'not.be.lessThanOrEqual', value: number): Chainable<Subject>
|
|
4941
4981
|
/**
|
|
4942
4982
|
* Asserts that the target is not loosely (`==`) equal to `true`. However, it's often best to assert that the target is strictly (`===`) or deeply equal to its expected value.
|
|
4943
4983
|
* @example
|