Commit Graph

1840 Commits

Author SHA1 Message Date
Bill Glesias
b75850e37b feat: rework window bound commands to use automation clients (#31862)
* spike: cut over cy.url(), cy.hash(), cy.location(), cy.reload(), cy.go(), and cy.title() all to use the automation client to subvert the cross-origin boundary

refactor backend client

* chore: add unit tests for cy url, hash, location, title, reload, and go changes to make it easier to test minor behavior changes

bump cache

* fix issues with cy in cy tests. refactor aut discovery code as the frame tree gets stale on reload

* update comments from code review

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-06-17 16:33:56 -04:00
Jennifer Shehane
968dabbe45 Merge branch 'develop' into release/15.0.0 2025-06-17 13:51:52 -04:00
Bill Glesias
79469f5616 chore: release 14.5.0 (#31900) 2025-06-17 13:28:10 -04:00
renovate[bot]
d51db04755 chore(deps): update dependency hasha to v5.2.2 (#31880)
* chore(deps): update dependency hasha to v5.2.2

* use hashs instead of copied code

* chore(deps): update dependency hasha to v5.2.2

* move to dep instead of devDep

---------

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-06-16 16:58:37 -04:00
Jennifer Shehane
32313cac84 feat: remove page hide event from triggering unload event listener (#31853)
* feat: remove page hide event from triggering unload event listener

BREAKING: remove page hide event from triggering unload event listener

* add changelog entry

* fix test
2025-06-11 14:59:47 -04:00
Jennifer Shehane
b7aff4521a Merge branch 'develop' into release/15.0.0 2025-06-10 09:13:37 -04:00
Mike McCready
4450d3be74 chore: fix pre-release download for win32-arm64 (#31836)
* chore: fix pre-release download for win32-arm64

follow-on fix for PR #31784

* add unit test win32-arm64 to win32-x64 for pre-release
2025-06-06 14:25:31 -04:00
Matt Schile
76eb083327 fix: ensure Cypress.stop fires all end events appropriately (#31830) 2025-06-05 15:41:22 -06:00
Mike McCready
ec252f8601 feat: install win32-x64 binary on win32-arm64 platform (#31784)
* feat: install win32-x64 binary on win32-arm64 platform

* Move changelog feature to next minor release

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-06-05 09:56:28 -04:00
Bill Glesias
a0a4eb1b2c chore: release 14.4.1 (#31820) 2025-06-03 13:17:49 -04:00
Matt Schile
68469a67e9 fix: add cy.then timeouts to cy.session (#31788) 2025-05-30 10:47:52 -06:00
Bill Glesias
8b8230b291 breaking: remove built-ins from @cypress/webpack-batteries-included-preprocessor (#31738)
* breaking: remove webpack built-ins shimmed in from webpack 4 to 5 upgrade as they should no longer be needed for most users

* Update npm/webpack-batteries-included-preprocessor/README.md

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

* Update cli/CHANGELOG.md

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

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-29 00:16:40 -04:00
Alejandro Estrada
5dc876eebd misc: Update nested groups design (#31739)
* refactor: Update nested groups design

* Update styles

* Enhance command method styling for child elements in the reporter. Updated the CommandDetails component to conditionally apply a class for child commands and added corresponding SCSS styles to display a prefix for child command methods.

* Fix formatting in SCSS for child command styles by adjusting indentation for better readability.

* add chanagelog entry

* Enhance command expander styling by adding a parent class for better layout control and adjusting margin for command number column.

* Update padding for error message styles in SCSS to improve layout consistency.

* Refactor SCSS styles and introduce mixins for gutter alignment and command info padding. Update error component styles for improved layout and consistency. Adjust padding and margins for better alignment across command and error sections.

* Refactor command styles by removing redundant class names and consolidating group indentation styles into a mixin. Update SCSS files to utilize the new mixin for consistent width handling across command and error components.

* Enhance SCSS mixins by adding align-self property for improved layout consistency in command info and group indentation styles.

* Remove redundant align-self property from SCSS mixin for command info and add logging and expectation in Cypress test for improved clarity in UI state tests.

* Use snapshotReporter instead

* Refactor snapshotReporter to dynamically set width based on reporter panel size, improving snapshot accuracy and visibility of UI elements.

* Update snapshotReporter to include sidebar width in percy snapshots, enhancing UI element visibility and accuracy.

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-05-28 18:16:16 -05:00
Jennifer Shehane
74daed48b7 Merge branch 'develop' into release/15.0.0 2025-05-21 11:57:04 -04:00
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
Jennifer Shehane
a43873832a merge develop 2025-05-14 09:59:16 -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
3bd6eacd4e merge develop into 15 2025-05-12 16:07:08 -04:00
Jennifer Shehane
10c6656ed6 misc: Remove migration UI, warnings, and errors for changes pre-Cypress 10 (v15) (#31629)
* begin removing migration code

* remove migration query

* add back actions

* remove more migration references

* more migration removals

* remove call to migration

* remove gqp-Migration file

* updates to remove migration

* update type

* remove a lot more migration code - especially errors

* Remove other errors/warnins for versions before 10.x

* update error snapshots

* fix some tests

* index on remove-migration: 49fa75ab78 Merge branch 'remove-migration' of https://github.com/cypress-io/cypress into remove-migration

* index on remove-migration: 49fa75ab78 Merge branch 'remove-migration' of https://github.com/cypress-io/cypress into remove-migration

* index on remove-migration: 49fa75ab78 Merge branch 'remove-migration' of https://github.com/cypress-io/cypress into remove-migration

* remove more system tests and references

* fix call to refreshMetaState which was lost at initialization

* rearrange some system tests to not be dependent on migration

* update welcome version test

* fix wording of messaging

* skip irrelevant test

* fix failing assertion

* remove tests around cypress-plugin-retries

* Remove test from config_spec

* Remove screenshot from snapshot

* fix tests + remove more migration projects

* remove + update system tests

* remove + update system tests

* remove some invalid dev-server: start errors

* remove references and tests around pluginsFile which was removed

* remove some more invalid config examples

* Add changelog entry

* fix changelog link

* fix unit test

* index on remove-migration: 490ddb134c Merge branch 'release/15.0.0' into remove-migration

* index on remove-migration: 490ddb134c Merge branch 'release/15.0.0' into remove-migration

* index on remove-migration: 490ddb134c Merge branch 'release/15.0.0' into remove-migration

* run all binary/windows tests on this branch

* Update packages/scaffold-config/test/unit/detect.spec.ts

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

* Update packages/scaffold-config/test/unit/detect.spec.ts

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

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-05-12 13:17:32 -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
86c2233a3a Merge branch 'develop' of github.com:cypress-io/cypress into merge_dev_rel_15 2025-05-07 15:43:34 -04:00
Jennifer Shehane
7423b5b439 Merge branch 'develop' into release/15.0.0 2025-05-06 15:33:03 -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
Bill Glesias
8659b275f8 breaking: make the minimum zone/js version in @cypress/angular 0.14.0 (#31632) 2025-05-05 10:58:18 -04:00
Jennifer Shehane
a621b422f3 Merge branch 'develop' into release/15.0.0 2025-05-05 09:36:42 -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
Jennifer Shehane
f58aabd320 breaking: Remove deprecated cy.stub(obj, method, fn) signature (#31548)
* breaking: Remove deprecated cy.stub(obj, method, fn) signature

BREAKING: Remove deprecated cy.stub(obj, method, fn) signature

* remove the code that supports 3 args of cy.stub

* changelog entry

* remove test for support of 3 arg signature

* link issue in changelog
2025-05-02 13:43:52 -04:00
Bill Glesias
2fd8712456 breaking: the minimum version of webpack for webpack-preprocessor and webpack-batteries-included-preprocessor is webpack 5. both packages need a breaking version published (check the peerDeps in WBIP)" (#31506)
breaking: webpack/wds v4 is no longer supported in @cypress/webpack-dev-server

update changelog and clean up comments
2025-05-01 13:28:01 -04:00
Bill Glesias
9b3b023aa0 feat: replace ts-node with tsx for parsing user configuration (#31520)
* feat: replace tsnode with tsx for parsing user configuration in all cases

* bump ubuntu images from node 18 to 20 as node 18 is not supported in cypress 15 and allows us to not include the 18.19.0 workaround to use --import with tsx inside the ProjectConfigIpc

* fix: issues finding tsx on windows as it needs the file:// protocol as absolute drive paths are not recognized as a file protocol in the node context

* make sure to filter out stack code correctly for windows

* fix: fix flake from windows on reporter menu not expanding (unrelated to this PR and should be merged into develop)

* chore: update changelog with all issues tsx cutover closes

* fix merge conflicts

* chore: add regression tests for cypress projects that previously did not work but now do with tsx

* build all binaries

* chore: address issues from code review

* update changelog

* remove todo comment on testing legacy migration with tsx

* refactor codeFrame calculation into a util function and add a unit test

* updated node versions in project config ipc tests to remove 18 and test threshold / latest values. Removed redundant comments on ts-node.
2025-04-29 13:31:28 -04: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
Bill Glesias
971b7ae3d7 breaking: remove Angular 17 support (#31446)
* breaking: remove Angular 17 support

BREAKING CHANGE: Removed support for Angular 17. Only Angular 18 and 19 are now supported. This change affects the @cypress/angular package. Addresses #31303.

* empty commit to kick CI

* update changelog references to make it clearer on where angular 17 packages live historically

* fix cy framework errors app test to use angualr 18 and 19

* fix issue where di was not discoverable in resolved system tests config

* fix scaffold dependencies to use angular 18 and 19 and not 17 and 18

* fix zonr.js system test dependency resolution

* bump cache

* fix failing handler test

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-04-24 15:49:21 -04:00
Jennifer Shehane
726244c6d0 Merge branch 'develop' into release/15.0.0 2025-04-23 13:51:32 -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