Fast, easy and reliable testing for anything that runs in a browser.
fix: reject cy.intercept delay values >= 2^31 (#33377)
* fix: login attempts subsequent to a cancelled one now launch the browser and can complete (#33366) * fix: login attempts subsequent to a cancelled one now launch the browser and can complete * resolve cached responses with a bluebird promise instead of a native promise * adds typedefs for @cypress/request and extends interfaces so that api/index.ts can be better typed * correct type declaration in packages/server/lib/cloud/user.ts * clean up ts/package.json * changelog * rm expect-error directive and repalce with ignore - why is driver typechecking this? * changelog * fix: reject cy.intercept delay values >= 2^31 setTimeout uses a signed 32-bit integer internally, so delay values >= 2^31 (~24.8 days) are silently coerced to 1ms. This causes the delay to be effectively ignored with no indication to the user. Add validation in validateStaticResponse to throw a clear error when delay >= 2^31, consistent with how throttleKbps is validated. Fixes #33183 * 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) * fix: use 2**31 notation instead of 2^31 and add PR link to changelog Address review feedback: use JavaScript exponentiation notation (2**31) instead of mathematical caret notation (2^31) in comments and changelog to avoid confusion with JavaScript's XOR operator. Also add the missing PR reference link in the changelog entry. * Update CHANGELOG.md Moves the changelog entry to 15.11.1 * Fix off-by-one error * Update error message with regard to off-by-one * Fix test with regard to off-by-one * lint * Update CHANGELOG.md --------- Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com> Co-authored-by: Matt Schile <mschile@cypress.io>
V
Varun Chawla committed
60325bb11fa1043b240d1fee7c81e157c9d2cd0b
Parent: 32fd6bb
Committed by GitHub <noreply@github.com>
on 4/1/2026, 1:38:44 PM