Commit Graph

964 Commits

Author SHA1 Message Date
Bill Glesias 4d904e272f chore: refactor @packages/https-proxy to TypeScript and use vitest instead of mocha (#32718)
* chore: convert @packages/https-proxy to TypeScript and use vitest instead of mocha

* chore: address comments from code review

* Update packages/https-proxy/vitest.config.ts
2025-10-15 14:00:41 -04:00
Cacie Prins 86d9c842c7 feat: exit with code 112 when api errors prevent cloud orchestrated runs (record mode, parallel run mode) (#32635)
* feat: exit with code 112 on fatal api errors when posix error codes are enabled

* rm dead code

* ts

* system tests for 112 exit code

* fix race condition w/ exit codes

* only 112 on network errors, not http errors

* have connection timeouts run a little bit faster in system tests

* new schema for network errors

* 112 should only be on network errors, update integration test

* changelog

* changelog

* coerce boolean

* code review

* review

* rm extra debug
2025-10-14 11:35:00 -04:00
Matt Schile 6e8dc8e56b test: (studio) fix empty spec test (#32661) 2025-10-07 07:11:02 -04:00
Ryan Manuel df047b0a42 feat: cy.prompt experimental command [Feature Flagged] (#31752)
* Create cy-prompt-development.md

* chore: cy prompt infrastructure (#31748)

* feat: cy prompt infrastructure

* refactor and add tests

* refactor

* rename experimental config

* prompt

* fix test

* Update cy-prompt-development.md

* Update cy-prompt-development.md

* PR comments

* Update packages/server/lib/cloud/api/cy-prompt/get_cy_prompt_bundle.ts

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

* PR comments

---------

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

* fix test

* Delete packages/server/lib/cloud/StudioLifecycleManager.ts

* Delete packages/server/test/unit/cloud/StudioLifecycleManager_spec.ts

* chore: add cdp connection to cy prompt (#31806)

* chore: add cdp connection to cy prompt

* minor fix

* fix type build

* try to fix build

* Update packages/server/lib/browsers/browser-cri-client.ts

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

* Update packages/server/lib/browsers/browser-cri-client.ts

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

* do not support prompt in firefox or webkit

* rework timing of lifecycle

* refactor

* fix tests

* troubleshooting

* troubleshooting

* fix tests

* additional troubleshooting

* additional troubleshooting

* additional troubleshooting

* attempt to fix build

* add back

* debugging

* debugging

* debugging

* debugging

* clean up

* fix unit tests

* rework

---------

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

* chore: create infrastructure to support backend function in cy.prompt (#31803)

* chore: add promptBackend as an additional Cypress-attached function

* Update packages/app/src/runner/event-manager.ts

* update types

* fix types

* fix spacing

* refactor

* additional refactor

* fix type build

* fix build

* refactor

* reword messages

* fix

* debugging

* undo debugging

* PR comment

* fix tests

* fix tests

* fix tests

* fix test

* chore: add watcher for cy-prompt development (#31810)

* chore: add watcher for cy-prompt development

* test caching

* fix types

* chore: turn on beta deployments for cy-prompt

* internal: (cy.prompt) handle errors better in the command definition (#31835)

* internal: (cy.prompt) handle errors better in the command definition

* internal: (cy.prompt) add timeout and handle loading errors more cleanly

* add process environment variable

* clean up test

* update JSDoc

* chore: handle errors (#31854)

* chore: handle errors

* Fix ts, add test

* Fix error title

* Fix ts

* Fix ts

* chores: (cy.prompt) refactor routing to support both app and driver (#31891)

* chore: Share error utils with the cloud (#31887)

* share error utils with cloud

* additional rework

* Fix command, add isOpenMode

* Add / fix test

* fix ts

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* internal: (cy.prompt) add infrastructure to support a Get Code modal (#31904)

* chore: (cy.prompt) add infrastructure to support a Get Code modal

* fix tests

* fix code paths

* Update eject button styles

* handle errors

* update types

* Update packages/server/lib/socket-base.ts

* Fix cy test

* update readme

---------

Co-authored-by: estrada9166 <estrada9166@gmail.com>

* chore: (cy.prompt) refactor getTestsState to take a runnable id (#31965)

* chore: (cy.prompt) refactor getTestsState to take a runnable id

* fix tests

* minor tweak

* chore: (cy.prompt) add manifest for all of the cloud delivered files (#31922)

* chore: (cy.prompt) add manifest for all of the cloud delivered files

* fix tests and remove environment variables

* update strategy

* fix build

* rework

* require manifest

* clean up

* refactor

* refactor

* Update packages/server/lib/cloud/cy-prompt/CyPromptLifecycleManager.ts

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

* fix test

---------

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

* feat: add cy prompt more info needed modal (WIP) (#31970)

* feat: add cy prompt more info needed modal

* Reset promptStore

* additional things exposed for more info

* rework

* fix tests

* fix build

* fix types

* fix types

* Update packages/app/src/runner/event-manager.ts

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

* reefactor

* chore: (cy.prompt) rework the file save lifecycle

* rework types

* add unit tests

---------

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

* fix: (cy.prompt) ensure that we do not attach a vue ref to the react root in the cy.prompt modals (#32011)

* fix: (studio) ensure that we do not attach a vue ref to the react root in the studio panel

* fix test

* chore: Handle cy-prompt error to the cloud (#32009)

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* chore: display prompt error message (#32016)

* add createCloudRequest to cloudApi, handle errors during createCyPromptServer

* render the get code button on failure

* chore: update types

* chore: move CT and browser error to cloud (#32077)

* feat: (cy.prompt) give cy.prompt access to recording information (#32110)

* feat: (cy.prompt) give cy.prompt access to recording information

* undo bad refactor

* undo bad refactor

* undo bad refactor

* rename

* fix typo

* Update packages/server/test/unit/modes/record_spec.js

* Update packages/server/test/unit/modes/record_spec.js

* Update packages/server/test/unit/modes/record_spec.js

* Update packages/server/test/unit/modes/record_spec.js

* Update packages/server/test/unit/modes/record_spec.js

* Update cy-prompt-development.md

* Update cy-prompt-development.md

* Update cy-prompt-development.md

* chore: add CYPRESS_INTERNAL_SIMULATE_OPEN_MODE to simulate running Cypress tests in open mode (#32114)

* chore: (cy.prompt) ensure to strip out paths from all data when reporting errors in prompt (#32134)

* fix: (cy.prompt) ensure to strip out paths from all data when reporting errors in prompt

* refactor

* update tests

* fix logic error with protocol

* add event manager to get code

* Apply suggestions from code review

* fix: (cy.prompt) improve the get project options performance by running promises in parallel (#32196)

* fix: (cy.prompt) improve the get project options performance by running promises in parallel

* add awaits in test

* bump cache

* Update packages/server/lib/cloud/studio/StudioLifecycleManager.ts

* fix build

* chore: cleanup

* blank

* Update trigger-publish-binary-pipeline.js

* Update packages/server/test/unit/socket_spec.js

* get rid of environment variable

* fix: (cy.prompt) ensure to reset the prompt state when the event manager is torn down (indicating that we're no longer on the runner page) (#32301)

* fix: (cy.prompt) ensure to reset the prompt state when the event manager is torn down (indicating that we're no longer on the runner page)

* move test

* fix lint issue

* feat: (cy.prompt) introduce the concept of log collapse state being open/closed by default (#32262)

* feat: (cy.prompt) introduce the concept of logs' collapse state being open/closed by default

* update tests

* rename

* PR comments

* fix test due to bad merge of develop

* chore: Only allow experimentalPromptCommand within e2e config (#32435)

* chore: Only allow experimentalPromptCommand within e2e config

* Fix config

* Update tests

* Update test, update types

* Fix test and types

* fix tests

* Add types

* Update cli/types/cypress.d.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update workflows.yml

* Add optional cyPromptManagerPromise property

* Implement error handling in CyPromptManager

Added a new method to handle errors uniformly in CyPromptManager.

* Fix indentation in socket_spec.js

* fix: (cy.prompt) handle when the prompt is executed by in CT or when the experiment is not enabled (#32470)

* fix: (cy.prompt) handle when the prompt is executed by in CT or when the experiment is not enabled

* Update packages/driver/cypress/e2e/commands/prompt/prompt.cy.ts

* Update packages/driver/cypress/e2e/commands/prompt/prompt.cy.ts

* update name of errors

* Bump cache version to 9-15-2025

* update yarn.lock

* fixes

* fix snapshot

* fix snapshot

* internal: fix get code button to be purple with correct margin (#32504)

* feat: (cy.prompt) update the types of prompt (#32529)

* fix: move currentMoreInfoNeededModalInfo.onCancel to onClose (#32559)

* internal: (cy.prompt) various improvements to error messages and time outs (#32582)

* internal: (cy.prompt) various improvements to error messages and timeouts

* fix test

* remove dead code

* Update packages/driver/src/cy/commands/prompt/index.ts

* update prompt experiment description

* fix build

* fix tests

* fix tests

* fix test

* update error message

* Update packages/server/lib/experiments.ts

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>

---------

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>

* internal: (cy.prompt) ensure that get code can properly work with prompts in cy.origin (#32596)

* internal: (cy.prompt) ensure that get code can properly work with prompts in cy.origin

* additional tests

* additional tests

* Apply suggestions from code review

* code review comment

* fix merge

* fix merge

* Update packages/data-context/graphql/schemaTypes/index.ts

* update workflow

* blank

* persist binaries

* chore: display custom link title (#32567)

* chore: display custom link title

* Add test

* Pass docs as second argument of the error

* Revert changes

* Use openExternal for links

---------

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

* update

* internal: (cy.prompt) do not retry on cert failures (#32624)

* internal: (cy.prompt) do not retry on cert failures

* tests and clean up

* additional cleanup and add error message for prompt

* fix unit tests

* Update report_studio_error.ts

* Update packages/network/lib/agent.ts

* cursor comment

* fix build

* fix build

* fix test

* fix build

* fix build

* fix build

* fix build

* fix build

* revert

* Update packages/driver/src/cypress/error_messages.ts

* Update packages/driver/cypress/e2e/commands/prompt/prompt-initialization-error.cy.ts

* fix build

* cursor comment

* add changelog entry

* clean up

* Update packages/app/src/store/prompt-store.ts

* Bump cache version to 10-3-2025

Updated cache version to trigger CI cache recreation.

* Revise CHANGELOG for new features and fixes

Updated changelog with new features and bug fixes.

* index on feat/cy-prompt: 3cbcf6c336 Bump cache version to 10-3-2025

* index on feat/cy-prompt: 3cbcf6c336 Bump cache version to 10-3-2025

* index on feat/cy-prompt: 3cbcf6c336 Bump cache version to 10-3-2025

* blank

* fix build

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-10-04 09:01:00 -05:00
Jennifer Shehane 056e6f6edd dependency: Electron 37 update (#32607)
* dependency: Electron 37 update

* bump min node

* Fix TS error

* Fix changelog location

* remove the example changelog as it obviously confused it

* add publish-binary branch

* update PR number in changelog

* run on all workflows

* fix types

* bump circle cache

* fix changelog numbers

* removed packages/changelog file

* Clarify minimum node + move some things around

* bump cache

* remove workflows

* build artifacts
2025-10-03 14:29:50 -04:00
mabela416 4d6347cf8a feat: Remove Studio as experimental - Turn Studio Beta on for all users of Cypress (no need for config flag) (#32571)
* clean up experimental studio config

* clean up studio test

* clean tests and add a test for new warning

* add snapshot tests

* revert unneeded changes

* revert unneeded changes

* only initialize studio lifecycle manager when testing type is e2e

* update changelog

* fix changelog

* add missing line break

* fix tests

* remove duplicate pending changelog entries

* Update packages/errors/src/errors.ts

* Replace HTML error snapshot with ansi snapshot

* fix changelog

* update system tests results snapshot

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-10-03 12:02:47 -04:00
Mike McCready ac0ad316a6 chore(deps): update @testing-library/cypress to 10.1.0 (#32617)
* chore(deps): update @testing-library/cypress to 10.1.0

* update system-tests yarn.lock files
2025-10-03 10:50:35 -04:00
Cacie Prins 14beae32dc feat: --posix-exit-codes cli flag in run mode (#32609)
* pass posix exit code to server

* return 1 if any tests fail and posix exit codes are enabled

* changelog

* rm .only

* snapshot

* changelog

* update typedef

* changelog

* Update cli/CHANGELOG.md

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

* lift disabled posix system test to different desc block

* add posix-exit-codes in lib/exec/run.ts#processRunOptions

* Apply suggestion from @jennifer-shehane

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

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-10-02 09:30:51 -04:00
Ryan Manuel 96bd60de6b fix: ensure that code frames within cy.origin point to the right line of the code (#32597)
* fix: ensure that code frames within cy.origin point to the right line of the code

* additional tests

* additional tests

* changelog

* Apply suggestions from code review

* Update system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts

* fix tests

* fix tests

* clean up
2025-09-30 14:46:24 -05:00
Bill Glesias b81c5a0a8e chore: convert tests in @packages/errors from mocha to vitest (#32572)
* start vitest convertion and convert errors spec to vitest

* chore: convert errTemplate to vitest

* convert stripIndent to vitest

* convert the visualsnapshoterrors spec to vitest

* chore: clean up errors package, update guide, and move snapshots

* move tests out of unit test directory as most tests are integration tests

* add to esm checklist and update workflow

* clean build and rebuild after test due to CI having built files

* Chore: fix bad test assertion in error spec

* Update guides/esm-migration.md

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

* chore: remove unused FIREFOX_CDP_FAILED_TO_CONNECT error as it is no longer used and likely missed with the CDP removal for Firefox

* chore: fix missed imports

* remove system test code to check for CDP error in firefox

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-09-29 11:37:07 -04:00
Bill Glesias 7d5fd90721 fix: incorrect loading of ESM based configurations (#32515)
* add regression test

* fix: make sure esm configs are indeed loaded as ESM
2025-09-22 11:03:34 -04:00
renovate[bot] 689b2b26cd dependency: update dependency electron to v36.8.1 (#32371)
* chore(deps): update dependency electron to v36.8.1

* bump node version

* update workflow files + publish-binary script

* bump base-internal images

* remove current node version from additional test

* bump circleci cache

* allow node_version env var

* Update .circleci/workflows.yml

* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x

* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x

* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x

* bump types/node

* update some node versions

* update integrity check and electron instrcutions

* correctly call net.family with net family type

* Revert "correctly call net.family with net family type"

This reverts commit 505ff949a8.

* update location of note types

* more clearly type frame

* fix type issues in agent.ts file

* fix agent call

* replace proxyquire in webpack-dev-server package

* add changelog

---------

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>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-09-18 10:32:19 -04:00
Muaz Othman ddc5fc22d2 chore: update Snyk scan configuration and upgrade Next.js in the tests (#32514)
* chore: update Snyk scan configuration and upgrade Next.js to version 14.2.25

- Added organization flag to Snyk SCA scan in the workflow configuration.
- Upgraded Next.js dependency from version 14.2.17 to 14.2.25 in multiple package.json and yarn.lock files.

* chore(security): relock some packages to address high vulnerabilities
2025-09-17 09:38:48 -04:00
Jennifer Shehane b4d5109cb9 chore: optimize server unit test perf (#32402)
* chore: improve performance of server unit-tests

* update screenshots spec to run faster

* improve timing of more server unit tests

* revert the project spec changes

* fix path resolutions
2025-09-03 11:02:29 -04:00
renovate[bot] 6bffa5eed4 dependency: update dependency webpack-dev-server to v5.2.1 [security] (#32235)
* fix(deps): update dependency webpack-dev-server to v5.2.1 [security]

* fix(deps): update dependency webpack-dev-server to v5.2.1 [security]

* empty commit

* chore: update lock and update protocol system test snapshots

---------

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>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-09-02 17:54:07 -04:00
renovate[bot] a51d27842a dependency: update dependency esbuild to ^0.25.2 [security] (#32231)
* fix(deps): update dependency esbuild to ^0.25.0 [security]

* empty commit

* bumping esbuild in system-tests

* bump to higher version

* index on renovate/npm-esbuild-vulnerability: bd192afbf9 bump to higher version

* index on renovate/npm-esbuild-vulnerability: bd192afbf9 bump to higher version

* index on renovate/npm-esbuild-vulnerability: bd192afbf9 bump to higher version

* bump to 0.25.2

* update due to esbuild metadata output additions

* index on renovate/npm-esbuild-vulnerability: 20b9d374d7 update due to esbuild metadata output additions

* index on renovate/npm-esbuild-vulnerability: 20b9d374d7 update due to esbuild metadata output additions

* index on renovate/npm-esbuild-vulnerability: 20b9d374d7 update due to esbuild metadata output additions

* fix binary-cleanup

* Fix tslib module paths in binary-cleanup.js

* Update tslib import paths in binary-cleanup.js

* Remove tslib ES6 module references

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-08-22 14:58:42 -05:00
renovate[bot] 13f5c04bdc chore(deps): update dependency image-size to v1.2.1 [security] (#32312)
* chore(deps): update dependency image-size to v1.2.1 [security]

* empty commit

---------

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-08-22 09:30:47 -04:00
Matt Schile a8e7fa1b87 fix: (studio) hide Studio button in CT (#32315) 2025-08-21 12:47:32 -06:00
Cacie Prins e463fdbc61 fix: Redirect spammy electron stderr to a debug sink (#32188)
* wip: system test to reproduce

* system test for alsa stderr

* split cypress from 3rd party stderr at parent process to electron child

* rm garbage warning regexes

* fix newline behavior when parsing internal stderr

* migrate left over console errors

* clean up system test name

* fix typed import

* extract stderr splitting to separate pkg so runner can use @packages/error

* rm new err log from packherd-quire

* handle backpressure

* docs

* some unit tests & coverage for stderr-filtering

* unit tests

* no longer test regexp specific output in spawn unit tests

* filter enabled debug namespaces rather than just cypress namespacesc

* revise stream splitting et al

* try to fix v8 snapshot build??

* fix console.log assertion

* add missing eslint config

* rm unused spies

* fix regexp for optional leading wsp and ansi on debug entries

* update unit tests because sinon

* lint

* colon..

* build stderr-filtering before checking if binary exists

* adds TagStream transform stream, fixes stderr from child proc config

* add build-prod script for stderr-filtering

* changelog

* properly handle backpressure in prefixed content transform stream

* use standard tsconfig?

* better tsconfig

* Add pkgStderrFiltering to monorepoPaths

* add \"files\" manifest

* pipe all stderr to stderr when CYPRESS_INTERNAL_DEBUG_ELECTRON is enabled

* rm explicit build of stderr-filtering in check-if-binary-exists step

* ensure all dependencies of scripts/ are built before scripts are executed in the check-if-binary-exists command

* fix dev version ref

* swap logic

* add stdin piping

* fix exec name on the run-on-dependencies command to be more useful

* use correct env

* rm obsolete type refs

* simplify stderr-filtering public iface, pipe cy-in-cy stderr through filtering tx

* bust cache

* fix mocks

* fix v8-snapshot

* move stderrfiltering to dev pkg in cli

* skip integrity check in ci, if they are out of date things should fail anyway

* copypasta over a portion of stderr-filtering to cli, since cli cannot import @packages

* Delete issues.md

* rm special filtering for cy in cy

* rm too narrow rules file

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-19 17:05:53 -04:00
renovate[bot] 4afff00deb fix(deps): update dependency systeminformation to v5.23.8 [security] (#32234)
* fix(deps): update dependency systeminformation to v5.23.8 [security]

* fix(deps): update dependency systeminformation to v5.23.8 [security]

* empty commit

* bump systeminformation to latest

* yarnlock

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-08-18 16:08:05 -04:00
Adam Alston ad4bf37ad8 fix: invalidate cache when fixture is updated via writeFile (#32161)
* fix: invalidate cache when fixture is updated via writeFile

* refactor: delete space

* fix: improve fixture path resolution

* fix: improve fixture path resolution

* fix: update cache key generation

* fix: fetch config at execution time

* fix: invalidate fixture cache entries across encodings and paths

* fix optimized dependencies failures

* fix: relative pathing on windows as path polyfill only works with unix style paths

* Update packages/driver/src/cy/commands/fixtures.ts

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-18 14:38:43 -04:00
Bill Glesias f6e0744e38 breaking: update execa from 1.0.0 to 4.1.0 (#32238)
* breaking: update execa from 1.0.0 to 4.1.0 which breaks the yielded cy.exec() object from yielding property code and instead yields exitCode

* fix launchpad tests on linux

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-08-18 11:52:24 -04:00
renovate[bot] bebfa46bc9 fix(deps): update dependency body-parser to v1.20.3 [security] (#32225)
* fix(deps): update dependency body-parser to v1.20.3 [security]

* empty commit

* fix(deps): update dependency body-parser to v1.20.3 [security]

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-08-14 12:50:37 -04:00
Bill Glesias c96115df0f feat: support Angular 20 (#32198)
* feat: support angular 20

* chore: update cypress/schematic dev deps
2025-08-13 18:23:48 -04:00
renovate[bot] cc989d9b72 chore(deps): update dependency multer to v2.0.2 [security] (#32221)
* chore(deps): update dependency multer to v2.0.2 [security]

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-08-13 13:16:13 -04:00
Bill Glesias 19df26c279 chore: update babel to latest (#32203) 2025-08-12 15:07:23 -04:00
Bill Glesias b7f6888ded chore: update build dependencies to vite 6 (#32041)
* chore: update build dependencies to vite 6

* empty commit

* update snapshots
2025-08-11 10:36:21 -04:00
mabela416 d28bc0efa0 internal: fix assertion menu not displayed in the correct location (#32172)
* handle 0 offsets for selector highlight styles

* use the child element for the rest of the calculations

* add test

* add percy snapshot

* does the placement of the percysnapshot show the menu?

* assert position of the menu
2025-08-11 09:42:07 -04:00
Bill Glesias 4ab9ff0c95 Merge branch 'develop' into release/15.0.0 2025-08-07 17:57:24 -04:00
github-actions[bot] 17a9ceb4c6 chore: Update Chrome (stable) to 139.0.7258.66 and Chrome (beta) to 140.0.7339.5 (#32165)
* chore: Update Chrome (stable) to 139.0.7258.66

* empty commit

* chore: Update Chrome (stable) to 139.0.7258.66 and Chrome (beta) to 140.0.7339.5

* update png

* fix

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-08-07 16:51:33 -04:00
Cacie Prins 06f9cbec34 test: remove redundant and flaky system test (#32169)
* test: remove redundant & flaky system test

* rm legacy snapshot for removed system test
2025-08-07 16:50:52 -04:00
Bill Glesias b6f3eead33 Merge branch 'develop' into merge_develop_15 2025-08-07 15:45:04 -04:00
Bill Glesias 99055ec6ac fix: make sure legacy output spies work as intended (#32158) 2025-08-07 15:29:32 -04:00
Bill Glesias 9ef239e68b fix: update bidi automation client to handle unspecified cookie option in firefox and keep behavior for firefox 139 and under as the 'default' sameSite value does not exist in this version 2025-08-06 16:04:55 -04:00
Bill Glesias a3924071c1 Merge branch 'develop' into merge_develop_15 2025-08-05 16:23:25 -04:00
Jennifer Shehane 788dfd1c0b chore: bump firefox version we test against to 141 (#32078)
* chore: bump firefox version we test against to 141

* account for unspecified sameSite which is now available in firefox 140

* fix expected error string for invalid cookie

* override FORCE_FIREFOX_CDP firefox 141

* fix cdp override in ff 141+

* maybe fix cookeie system tests? seem to time out locally

* set family as well as name

* fix system tests fore ff 141

* fix ff deprecation

* rm erroneous err param

* assume firefox is modern in cookies driver e2e test

* Update system-tests/lib/system-tests.ts

* we do still run tests against firefox 134

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Cacie Prins <cacie@cypress.io>
2025-08-05 13:00:30 -04:00
Ryan Manuel 6e2a60e159 Merge branch 'develop' into release/15.0.0 2025-08-04 08:52:16 -05:00
Ryan Manuel 41272643aa chore: add a private method on Cypress that tracks whether source maps are available (#32140)
* chore: add a private method on Cypress that tracks whether source maps are enabled

* refactor

* oops

* refactor
2025-08-04 08:50:59 -05:00
Adam Stone-Lord e1ca574dc5 internal: (studio) allow tests to be created in specs that have .only tests (#32118)
* internal: (studio) allow tests to be created in specs that have .only tests

* fix stop-only

* add system test spec, add test, fix bugs

* clean up unused logic

* fix issue

* another fix

* refactors

* update variable name, consolidate logic

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-07-31 14:59:43 -05:00
mabela416 641d6aabe3 internal: use max z index for assertions menu overlay (#32130)
* internal: use max z-index for assertions menu overlay

* update test html for high z-index
2025-07-30 14:26:51 -04:00
mabela416 123091ef29 internal: make the shadow dom an overlay so that actions are not recorded when assertions dialog is displayed (#32100)
* internal: make the shadow dom an overlay so that clicks for elements under it are not captured

* Update packages/app/src/runner/dom.ts

* close menu when clicking outside of the menu

* add tests for closing assertion menu when clicking outside of it

* only do overlay if studio is active

* Update packages/app/cypress/e2e/studio/studio.cy.ts

* simplify function

* change z-index

* add test for high z-index modal

* remove function from inside listener so it is not defined every time the listener is called
2025-07-28 15:15:38 -04:00
Matt Schile ee37fdabe3 internal: (studio) update url when navigating (#32104) 2025-07-25 08:41:46 -06:00
Jennifer Shehane 5cad25c7ab Merge branch 'develop' into release/15.0.0 2025-07-25 09:44:01 -04:00
Cacie Prins 7825936902 chore(dep): upgrade cypress/request to 3.0.9 to address form-data vulnerabilities (#32096)
* chore(deps): upgrade @cypress/request

* changelog
2025-07-24 15:10:57 -04:00
Bill Glesias 205801c37b chore: fix bad merge with develop on angular system tests (#32054) 2025-07-18 09:22:11 -04:00
Matt Schile 3b883838b0 internal: (studio) support creating new test in root suite (#32024) 2025-07-16 21:38:09 -06:00
Adam Stone-Lord 47bda5413f fix: remove 'new' badge from Create from Component, fix parsing (#31457)
* fix: remove 'new' badge from Create from Component, fix parsing

* add changelog entry

* update changelog

* add test

* add test coverage

* fix lint

* actually fix lint
2025-07-16 16:53:03 -04:00
Bill Glesias af0908f5d5 breaking: remove vite 4 support inside component testing (#32039) 2025-07-16 16:18:38 -04:00
Bill Glesias 5a89bd3c0a Merge branch 'develop' into release/15.0.0 2025-07-16 15:27:46 -04:00
Christopher Leigh 886878b8b5 fix: ensure cy.mount is reference safe (#31238,#31983) (#31993)
* fix: ensure cy.mount is reference safe (#31238,#31983)

* chore: add changelog entry

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-07-16 15:10:59 -04:00