cypress 15.18.0 → 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/dist/bin/cypress CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var cli = require('../cli-B5v_kZB5.js');
4
+ var cli = require('../cli-MLF6G_xs.js');
5
5
  require('../xvfb-CqCqXRC-.js');
6
6
  require('os');
7
7
  require('bluebird');
@@ -32,7 +32,7 @@ require('commander');
32
32
  require('cli-table3');
33
33
  require('dayjs');
34
34
  require('dayjs/plugin/relativeTime');
35
- require('../spawn-Cnrq9zm4.js');
35
+ require('../spawn-DB1Wbiwy.js');
36
36
  require('child_process');
37
37
  require('listr2');
38
38
  require('readline');
@@ -13,7 +13,7 @@ var dayjs = require('dayjs');
13
13
  var relativeTime = require('dayjs/plugin/relativeTime');
14
14
  var chalk = require('chalk');
15
15
  var Bluebird = require('bluebird');
16
- var spawn = require('./spawn-Cnrq9zm4.js');
16
+ var spawn = require('./spawn-DB1Wbiwy.js');
17
17
  var os = require('os');
18
18
  var listr2 = require('listr2');
19
19
  var timers = require('timers/promises');
package/dist/cli.js CHANGED
@@ -8,8 +8,8 @@ require('commander');
8
8
  require('common-tags');
9
9
  require('log-symbols');
10
10
  require('debug');
11
- var cli = require('./cli-B5v_kZB5.js');
12
- require('./spawn-Cnrq9zm4.js');
11
+ var cli = require('./cli-MLF6G_xs.js');
12
+ require('./spawn-DB1Wbiwy.js');
13
13
  require('os');
14
14
  require('bluebird');
15
15
  require('@cypress/xvfb');
@@ -3,7 +3,7 @@
3
3
  var xvfb = require('./xvfb-CqCqXRC-.js');
4
4
  var tmp = require('tmp');
5
5
  var fs = require('fs-extra');
6
- var cli$1 = require('./cli-B5v_kZB5.js');
6
+ var cli$1 = require('./cli-MLF6G_xs.js');
7
7
 
8
8
  /**
9
9
  * Opens Cypress GUI
package/dist/cypress.js CHANGED
@@ -3,8 +3,8 @@
3
3
  require('./xvfb-CqCqXRC-.js');
4
4
  require('tmp');
5
5
  require('fs-extra');
6
- require('./cli-B5v_kZB5.js');
7
- var cypress = require('./cypress-B9M6be62.js');
6
+ require('./cli-MLF6G_xs.js');
7
+ var cypress = require('./cypress-9PxR1qmG.js');
8
8
  require('os');
9
9
  require('bluebird');
10
10
  require('@cypress/xvfb');
@@ -33,7 +33,7 @@ require('commander');
33
33
  require('cli-table3');
34
34
  require('dayjs');
35
35
  require('dayjs/plugin/relativeTime');
36
- require('./spawn-Cnrq9zm4.js');
36
+ require('./spawn-DB1Wbiwy.js');
37
37
  require('child_process');
38
38
  require('listr2');
39
39
  require('readline');
@@ -6,7 +6,7 @@ require('os');
6
6
  require('child_process');
7
7
  require('path');
8
8
  require('debug');
9
- var spawn = require('../spawn-Cnrq9zm4.js');
9
+ var spawn = require('../spawn-DB1Wbiwy.js');
10
10
  require('readline');
11
11
  require('process');
12
12
  require('stream');
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var xvfb = require('./xvfb-CqCqXRC-.js');
6
6
  var minimist = require('minimist');
7
7
  var Debug = require('debug');
8
- var cli$1 = require('./cli-B5v_kZB5.js');
9
- var spawn = require('./spawn-Cnrq9zm4.js');
10
- var cypress = require('./cypress-B9M6be62.js');
8
+ var cli$1 = require('./cli-MLF6G_xs.js');
9
+ var spawn = require('./spawn-DB1Wbiwy.js');
10
+ var cypress = require('./cypress-9PxR1qmG.js');
11
11
  require('os');
12
12
  require('bluebird');
13
13
  require('@cypress/xvfb');
@@ -9,7 +9,6 @@ var Debug = require('debug');
9
9
  var chalk = require('chalk');
10
10
  var listr2 = require('listr2');
11
11
  var commonTags = require('common-tags');
12
- var Bluebird = require('bluebird');
13
12
  var logSymbols = require('log-symbols');
14
13
  var readline = require('readline');
15
14
  var process$1 = require('process');
@@ -163,10 +162,7 @@ function verifyBinary(installedVersion, binaryDir, options) {
163
162
  task: (ctx, task) => xvfb.__awaiter(this, void 0, void 0, function* () {
164
163
  debug$1('clearing out the verified version');
165
164
  yield xvfb.stateModule.clearBinaryStateAsync(binaryDir);
166
- yield Promise.all([
167
- runSmokeTest(binaryDir, options),
168
- Bluebird.delay(1500), // good user experience
169
- ]);
165
+ yield runSmokeTest(binaryDir, options);
170
166
  debug$1('write verified: true');
171
167
  yield xvfb.stateModule.writeBinaryVerifiedAsync(true, binaryDir);
172
168
  task.title = xvfb.util.titleize(chalk.green('Verified Cypress!'), chalk.gray(binaryDir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "15.18.0",
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": "fa083dbc716f2fd1c50ba505ee9c400366c922f6",
142
- "commitDate": "2026-06-23T12:40:08.000Z",
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",
@@ -6,5 +6,68 @@ 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
20
+ }
21
+
22
+ interface Assertion {
23
+ /**
24
+ * Assert that at least one element of the selection is focused.
25
+ *
26
+ * @example
27
+ * expect($('#result')).to.have.focus
28
+ * expect($('#result')).to.be.focused
29
+ * @see http://chaijs.com/plugins/chai-jquery/#focus
30
+ */
31
+ focus: Assertion
32
+
33
+ /**
34
+ * Assert that at least one element of the selection is focused.
35
+ *
36
+ * @example
37
+ * expect($('#result')).to.be.focused
38
+ * expect($('#result')).to.have.focus
39
+ * @see http://chaijs.com/plugins/chai-jquery/#focus
40
+ */
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
9
72
  }
10
73
  }
@@ -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 "spec"
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 32
3187
+ * @default false
3188
3188
  */
3189
3189
  videoCompression: number | boolean
3190
3190
  /**
@@ -4053,7 +4053,7 @@ declare namespace Cypress {
4053
4053
  method: 'GET' | 'POST'
4054
4054
 
4055
4055
  /**
4056
- * An optional body to send along with a `POST` request. If it is a string, it will be passed along unmodified. If it is an object, it will be URL encoded to a string and sent with a `Content-Type: application/x-www-urlencoded` header.
4056
+ * An optional body to send along with a `POST` request. If it is a string, it will be passed along unmodified. If it is an object, it will be URL encoded to a string and sent with a `Content-Type: application/x-www-form-urlencoded` header.
4057
4057
  *
4058
4058
  * @example
4059
4059
  * cy.visit({
@@ -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