Skip to content

Commit b76a958

Browse files
veeceeyVarun Chawla
authored andcommitted
fix: add changelog entry and fix lint padding
- Add changelog entry for delay validation to cli/CHANGELOG.md - Fix padding-line-between-statements lint error (blank line after const)
1 parent fd0001e commit b76a958

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ _Released 02/17/2026 (PENDING)_
66
**Bugfixes:**
77

88
- Fixed an issue where a cancelled or incomplete login attempt would not properly open a browser window or tab, and required a restart of Cypress to enable a new login attempt. Fixed in [#33366](https://github.com/cypress-io/cypress/pull/33366). Fixes [#33350](https://github.com/cypress-io/cypress/issues/33350).
9+
- Fixed an issue where `cy.intercept` `delay` values >= 2^31 (approximately 24.8 days) were silently ignored by `setTimeout`. A clear validation error is now thrown for such values. Fixes [#33183](https://github.com/cypress-io/cypress/issues/33183).
910
- Fixed an issue on Windows where extracting the Studio or Prompt bundle could fail with `EPERM: operation not permitted` when renaming extracted files. The extract step now retries on EPERM/EACCES with a short delay to handle transient file locks. Addressed in [#33330](https://github.com/cypress-io/cypress/pull/33330).
1011

1112
**Misc:**

packages/driver/src/cy/net-stubbing/static-response-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export function validateStaticResponse (cmd: string, staticResponse: StaticRespo
6060
// setTimeout uses a 32-bit signed integer internally, so delays >= 2^31
6161
// (about 24.8 days) are silently treated as 1ms and effectively ignored.
6262
const MAX_TIMEOUT = 2147483647 // 2^31 - 1
63+
6364
if (delay && delay >= MAX_TIMEOUT) {
6465
err(`\`delay\` must be less than ${MAX_TIMEOUT}ms (approximately 24.8 days). Larger values are silently ignored by the timer implementation.`)
6566
}

0 commit comments

Comments
 (0)