Commit Graph

1766 Commits

Author SHA1 Message Date
Bill Glesias fa25461cb0 chore: release 14.5.1 (#31980) 2025-07-01 15:14:05 -04:00
Bill Glesias 69bb7efb37 dependency: pbkdf2 vulnerability inside @cypress/webpack-batteries-included-preprocessor (#31941)
* fix: update pbkdf2 vulnerability to fix @cypress/webpack-batteries-included-preprocessor

* dedupe lock file
2025-06-26 19:46:08 -04:00
Bill Glesias 40c81d0ec8 fix: proxy spec flake in firefox due to improper sweeping and correlation (#31651)
* fix: don't automatically remove requests when cdpRequestWillBeSentReceivedTimestamp is set to 0. Also, do not ass hashes to prerequest url as the urls do not have hashes when coming through the middleware

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

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-24 15:33:38 -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
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
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
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