Commit Graph

1755 Commits

Author SHA1 Message Date
renovate[bot]
21f22ce24d dependency: update dependency @sinonjs/fake-timers to v11 (#31746)
* chore(deps): update dependency @sinonjs/fake-timers to v11

* empty commit

* changelog entry

* fix changelog link

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-21 11:38:04 -04:00
Bill Glesias
92aa2737cc chore: release 14.4.0 (#31745) 2025-05-20 12:45:32 -04:00
renovate[bot]
b7cac8fb22 dependency: update dependency @sinonjs/fake-timers to v10 (#31737)
* chore(deps): update dependency @sinonjs/fake-timers to v10

* empty commit

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-20 09:31:36 -04:00
renovate[bot]
9d4b3db647 dependency: update dependency @sinonjs/fake-timers to v9 (#31725)
* chore(deps): update dependency @sinonjs/fake-timers to v9

* empty commit

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-19 11:12:07 -04:00
renovate[bot]
ff559dfd3a dependency: update dependency webdriver to v9.14.0 (#31689)
* fix(deps): update dependency webdriver to v9.13.0

* empty commit

* changelog entry

* update webdriver to 9.14.0 and update patches

* Update packages/server/patches/@wdio+protocols+9.14.0.patch

Co-authored-by: Matt Schile <mschile@cypress.io>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-05-16 16:59:42 -04:00
Bill Glesias
744d9b6a6a chore: fix sinon-chai relative path rewrite as it is breaking type checking in the cypress cli externally (#31733) 2025-05-16 11:38:29 -04:00
Bill Glesias
713575b548 misc: throw error when chrome 137 branded is used when the @cypress/puppeteer is used in headed mode or if --load-extension is added to launch options via a user testing an extension (#31709) 2025-05-16 09:23:23 -04:00
renovate[bot]
91d5a2ee5f chore(deps): update dependency sinon-chai to v3.7.0 (#31716)
* chore(deps): update dependency sinon-chai to v3.7.0

* empty commit

* bump circle cache

* add sinon-chai to base package.json as its used to test base level scripts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-05-15 11:05:03 -04:00
Tim Griesser
8f8bb60878 fix: Update cy.press signature to be Chainable (#31698)
* Update cy.press signature to be Chainable

Since it's added via `Commands.add`, I believe `cy.press` should have a return type of `Chainable<null>` rather than `void`

* Update first_spec.cy.js

Updated test for chainable

* use addAll rather than add to avoid type check

* fix unit test

* Add cli entry

* update changelog

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-14 09:52:28 -04:00
Bill Glesias
9934910a69 fix: rewrite top.window.location as self.window.location. This is done under modifyObstructiveCode flag (#31688) 2025-05-13 23:58:00 -04:00
Jennifer Shehane
9b6f150f49 misc: remove recommendation for record false in error message (#31676)
* misc: remove recommendation for record false in error message

* cli entry
2025-05-13 14:48:12 -04:00
Mike McCready
b68232c87f fix: find webkit version for playwright-webkit@1.52.0 (#31700)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-13 13:56:12 -04:00
Jennifer Shehane
435422f2c3 misc: Add Cursor IDE to Cypress recognized file editors (#31691)
* add Cursor IDE to Cypress recognized file editors

* show generic icon when there is no icon defined

* add changelog entry
2025-05-13 12:12:20 -04:00
Bill Glesias
46f2867b9d feat: ship webpack-bundle-analyzer with@cypress/webpack-dev-server and @cypress/webpack-batteries-included-preprocessor (#31588)
* feat: ship webpack-bundle-analyzer with @cypress/webpack-dev-server and @cypress/webpack-batteries-included-preprocessor to help better diagnose build issues for cypress users

* Update npm/webpack-dev-server/test/devServer-unit.spec.ts

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-12 17:26:00 -04:00
Jennifer Shehane
2d7a84d7a7 dependency: update trash dep and convert trash files from JS to TS (#31667)
* dependency: bump trash dir

* update trash files to TypeScript

* Run on binaries + other OSes

* index on update-trash: d37e059ac3 Run on binaries + other OSes

* index on update-trash: d37e059ac3 Run on binaries + other OSes

* index on update-trash: d37e059ac3 Run on binaries + other OSes

* fix build

* changelog entry

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-05-09 13:14:43 -04:00
Bill Glesias
242fb5661a chore: release 14.3.3 (#31650) 2025-05-06 13:35:05 -04:00
Cacie Prins
1119625a39 fix: no longer hang when piping stdout+stderr to a file under certain conditions (#31631)
* revert cli-table3 to 0.6.1 due to hangs when piping std(err,out) to file

* changelog

* changelog
2025-05-06 10:29:56 -04:00
Jennifer Shehane
8cf4aadbf6 chore: fix duplicate changelog entry (#31644) 2025-05-06 09:57:00 -04:00
Jennifer Shehane
53f7aaec56 misc: Assertion dropdown UI update (#31598)
* Refactor existing mounter of assertions - make a CT test for it

* update more styles + add a11y features

* bump vue-icons

* Finish last styles and icons

* Fix logic

* bump shared package icons

* fix test

* update css to be scoped + set all css to initial to clear AUT styles

* add test for getOrCreateHelperDom function

* update tabbing test

* add changelog

* update changelog to include addressed in
2025-05-05 09:03:35 -04:00
Matt Schile
8254b9452f fix: hang when navigating to about:blank (#31634) 2025-05-02 17:53:24 -06:00
Matt Schile
9f86cecdd7 perf: ensure the pausing event listeners are removed (#31596) 2025-04-29 11:29:32 -06:00
Yashodhan
e8a7c3f5f8 fix: prevent overwriting of video files (#30673)
* fix: use getPath to prevent video file overwrite

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* chore: update changelog

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* test: add system e2e for the retain videos fix

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Update cli/CHANGELOG.md

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

* Update types for screenshots to be in util/fs

* Fix changelog entry placement

* fix extension type

* more types fixes

* fix: add required field in getPath call to satisfy ts

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: sync Data interface from develop branch

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: update SavedDetails type to better definition

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* update changelog

* break out type import into unique line to allow mksnapshot to work

* fix: minor comment fixes

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: change videoPath fn signature as per comment

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix: convert the test to async/await

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Update CHANGELOG.md

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Co-authored-by: AtofStryker <bglesias@gmail.com>
2025-04-29 10:01:48 -04:00
Adam Stone-Lord
a5ba8c497c internal: (studio) initialize cloud studio asynchronously (#31469)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-04-29 09:37:44 -04:00
Jennifer Shehane
78f935d7dc misc: update URL bar to not flash white when urlIsLoading (#31557)
* misc: update URL bar to not flash white when urlIsLoading

* update run mode also

* add changelog

* fix changelog
2025-04-23 12:08:57 -04:00
Bill Glesias
b2a2c90242 chore: release 14.3.2 (#31565) 2025-04-22 15:13:38 -04:00
Ryan Manuel
0cd12eb642 fix: ensure debugging your ci failures message displays (#31563)
* fix: ensure having trouble debugging your ci failures message displays

* bump cache version

* index on ryanm/fix/having-trouble-debugging-your-ci-failures-minimal: 55804945c1 fix: ensure having trouble debugging your ci failures message displays

* index on ryanm/fix/having-trouble-debugging-your-ci-failures-minimal: 55804945c1 fix: ensure having trouble debugging your ci failures message displays

* index on ryanm/fix/having-trouble-debugging-your-ci-failures-minimal: 55804945c1 fix: ensure having trouble debugging your ci failures message displays

* fix test

* Update tooling/v8-snapshot/package.json

* Delete cli/vue2/README.md

* Delete cli/vue2/package.json

* Update ci_failure_spec_ts.js

* rename

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-04-22 12:51:08 -05:00
Bill Glesias
b47c3be0dd fix: auto scroll behavior (#31541)
* chore: add React.FC props and display names so components don't show up as anonymous in react dev tools

* fix: make sure newly added <Command> components call the auto scroll handler in the <Test> component

* Update cli/CHANGELOG.md

* Update packages/driver/cypress/support/utils.ts

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-18 15:50:56 -04:00
Bill Glesias
8e97a0d736 chore: release 14.3.1 (#31538)
* chore: release 14.3.1

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-17 12:53:03 -04:00
Jennifer Shehane
191fa02d1b chore: replace mocha.opts with .mocharc.js for packages that are mocha version 6+ (#31518)
* chore: replace mocha.opts with .mocharc.js for packages that are mocha version 6+

* move the mocharc file into the package root

* fix mocha reporter config location

* fix route to reporter-config

* store artifacts for unit tests

* move cli mocharc file to root of package

* remove storing artifacts

* remove js extension from errors mocharc
2025-04-17 10:39:15 -04:00
Cacie Prins
a50012b892 perf: reduce the initial timeout for proxy connections, make configurable (#31283)
* use cached preflight response on subsequent cloud requests that require a preflight

* introduce env var to skip initial proxy-api request

* rename env to CYPRESS_INTERNAL prefix

* change noproxy timeout default to 5 seconds

* fix

* rm internal

* changelog

* Update packages/server/test/unit/cloud/api/api_spec.js

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update packages/server/lib/cloud/api/index.ts

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* fix ts

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-04-17 10:00:46 -04:00
Cacie Prins
ab98b4940e fix: Back out of axios switchover for the createInstance cloud API request (#31486)
* use old create instance method for proxy support

* changelog

* conform legacy createInstance to the newer signature

* link to proxy env issue as todo

* changelog

* system test snapshots

* fix snap
2025-04-16 14:45:19 -04:00
Jennifer Shehane
eb5fe56a24 misc: suppress Failed to adjust OOM score of renderer errors from terminal (#31521)
* misc: suppress Failed to adjust OOM score of renderer errors from terminal

* changelog entry
2025-04-15 16:38:34 -04:00
Mike McCready
a40c14819d misc: correct documentation system-requirements link in error message (#31513) 2025-04-15 11:53:54 -04:00
Cacie Prins
9a51a0ff45 fix: activate main tab before detecting iframe focus in firefox/bidi implementation of cy.press() (#31481)
* activate main window before attempting to detect aut iframe active element

* add todo about refactor

* changelog

* system test for issue 31466

* no infinite max depth

* changelog

* changelog

* simplify

* additional test, better window switching logic
2025-04-14 16:13:13 -04:00
Jennifer Shehane
705580f369 misc: update some of the dark gray UI to be darker gray for better co… (#31475)
* misc: update some of the dark gray UI to be darker gray for better contrast

* Changelog entry

* add Pending to changelog

* Update other areas of the reporter to be darker gray

* update reporter section variable color
2025-04-10 12:46:32 -04:00
Bill Glesias
83e0d3c794 chore: release 14.3.0 (#31467) 2025-04-08 13:38:31 -04:00
Cacie Prins
cfdeb7af14 feat: cy.press() (#31398)
* wip - cy.press() command

* cy command for dispatching key press/down/up events

* unit tests and failure cases for cy.press()

* Cypress.Keyboard.Keys definition; fix command log message

* add keys to the internal keyboard type

* auto-focus in cdp

* ensure aut iframe is focused before dispatching key events in bidi browsers

* update tests for cdp focus

* fixed tests for bidi

* lint

* fix type ref in .d.ts

* linting

* skip press() driver test in ff below v135

* try all contexts for frame before failing due to missing/invalid context id

* ensure error is error before accessing props

* skip press driver test in webkit

* changelog

* debug automation middleware invocation for firefox flake

* debug

* cache update

* use bidi automation middleware from connectToNewSpec rather than constructor

* more comprehensive logging

* debug socket base, additional debug in automation

* install firefox automation middleware on setup as well as connectToNewSpec

* unit tests for firefox-utils

* proper calledWith

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-08 09:23:18 -04:00
Jennifer Shehane
ec53844713 dependency: update server to mocha 7.2.0 (#31432)
* dependency: update server to mocha 7.2.0

* Add PR to changelog
2025-04-02 15:46:04 -04:00
Jennifer Shehane
4ed0186a0e dependency: upgrade mocha to 7.2.0 (#31423)
* dependency: upgrade mocha to 7.2.0

* changelog entry

* remove the it.only from the mocha patch changelog that is triggering our stop-only check from passing

* skip patches folder with stop-only check

* remove extra bracket

* Update protocol_spec to reflect new mocha line number for error stack trace
2025-04-02 10:22:14 -04:00
Jennifer Shehane
a459591c4a dependency: update mocha from 7.1.1 to 7.1.2 (#31416)
* dependency: update mocha from 7.1.1 to 7.1.2

* changelog entry
2025-04-01 10:35:29 -04:00
Ryan Manuel
b6a64604ba fix: workaround for the electron animation bug (#31391)
* fix: workaround for the electron animation bug

* fix bug

* Update packages/server/test/unit/browsers/electron_spec.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* try something

* try something

* try something

* try something

* fix

* fix

* fix

* refactor and ensure still broken

* and the fix

* Update packages/server/test/unit/browsers/electron_spec.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/server/lib/browsers/electron.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update CHANGELOG.md

* refactor

* Update cli/CHANGELOG.md

* Update cli/CHANGELOG.md

Co-authored-by: Matt Schile <mschile@cypress.io>

* fix build

* Update packages/server/test/unit/browsers/electron_spec.js

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-03-31 08:50:14 -05:00
Jennifer Shehane
f6c1237009 dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)
* dependency: bump mocha from 7.1.0 to 7.1.1

* changelog entry

* Update lower number of duration check
2025-03-28 15:29:33 -04:00
Jennifer Shehane
1419234a95 dependency: minor bump mocha dep (#31387)
* dependency: minor bump mocha dep

* update patch package

* changelog entry
2025-03-27 17:22:34 -04:00
renovate[bot]
2d4702979b dependency: update dependency webdriver to v9.11.0 (#31315)
* fix(deps): update dependency webdriver to v9.11.0

* empty commit

* add changelog entry

* run some more tests

* add a comment for the postinstall running in the server

* bump circleci cache

* put patch-package back

* bump cache

* chore: update patches and add tests in test static assets

* fix changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: AtofStryker <bglesias@gmail.com>
2025-03-27 13:14:43 -04:00
renovate[bot]
18e3698ae1 chore(deps): update dependency snap-shot-it to v7.9.10 (#31386)
* chore(deps): update dependency snap-shot-it to v7.9.10

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-27 10:53:52 -04:00
Jennifer Shehane
835025da36 chore: fix changelog duplication (#31396) 2025-03-27 10:26:00 -04:00
Cecil King
33cf18e409 fix: allow version 10 of the babel-loader peer dependency (#31218)
* fix: allow version 10 of the babel-loader peer dependency

* empty commit

* adjust babel-loader dependency

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* upgrade babel-loader version

* chore: test babel loader

* chore: add changelog entry (only necessary due to touching the packages directory)

* chore: add changelog entry (only necessary due to touching the packages directory)

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-03-26 14:57:38 -04:00
Bill Glesias
45da70a4e2 fix: set cdpRequestWillBeSentReceivedTimestamp within firefox bidi to avoid downstream impacts (#31377)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-26 14:03:23 -04:00
Cacie Prins
5d8bf8570a misc: automation implementation / prerequisite for cy.press() (#31366)
* cdp command impl for tab dispatch

* misc: add automation command to cdp for forthcoming tab key

* changelog

* skip non chromium browsers for press() driver test

* fix test

* misc: bidi automation impl for key press

* amend types

* log, but do not fail, if key:press is not supported

* rm extraneous debugs

* rm more debug

* changelog

* comments

* revert to keyDown from rawKeyDown, remove delay

* expand changelog to include bidi

* changelog

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-03-26 11:42:59 -04:00
Jennifer Shehane
5e8e8d3f81 dependency: bump win-version-info from 5.0.1 to 6.0.1 (#31358)
* dependency: bump win-version-info from 5.0.1 to 6.0.1

* changelog entry

* run in more workflows

* Most changelog entry
2025-03-26 10:20:59 -04:00