7215 Commits

Author SHA1 Message Date
Alejandro Estrada c9e8d59d8a misc: update code button style for prompt (#32745)
* misc: update code button style for prompt

* Update changelog

* Update changelog

* Update className on Button

* Revert change

* Add font size to command prompt style

* Remove text size class from Code span
2025-10-17 12:45:28 -04:00
renovate[bot] 3f4516793d chore(deps): update dependency @antfu/utils to ^0.7.10 (#32744)
* chore(deps): update dependency @antfu/utils to ^0.7.10

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-10-17 11:27:13 -04:00
renovate[bot] 7958903e18 chore(deps): update dependency devtools-protocol to v0.0.1528500 (#32729)
* chore(deps): update dependency devtools-protocol to v0.0.1528500

* empty commit

* circle cache

---------

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-10-16 16:11:04 -04:00
renovate[bot] 758983c485 dependency: update dependency tsx to v4.20.6 (#32730)
* fix(deps): update dependency tsx to v4.20.6

* empty commit

* fix(deps): update dependency tsx to v4.20.6

* circle cache update

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-10-16 14:54:20 -04:00
Jennifer Shehane b533189c44 chore: fix studio test failure for empty test + split up studio specs (#32740)
* chore: fix studio test failure for empty test

* fix chaining flake in test

* split up studio specs
2025-10-16 14:18:24 -04:00
Bill Glesias e927cf7493 chore: fix local login flow where detecting machine ID is having ts-node interopt issues when loading the machine-id library (#32727) 2025-10-15 16:51:29 -05:00
Ryan Manuel a2adeabc5a fix: improve the performance of resetting the browser state by not resetting file_systems (#32703)
* fix: improve the performance of resetting the browser state by removing file_systems which is not something we need to reset

* fix test

* add changelog entry

* fix electron

* Apply suggestions from code review
2025-10-15 14:10:26 -05:00
Matt Schile a88da666a9 internal: create studio lifecycle manager when simulating open mode (#32705) 2025-10-15 12:42:27 -06:00
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
Jennifer Shehane deb49e2f39 chore: move rightclick & dblclick tests into own files (#32713)
* chore: move rightclick tests into own file

* more refactoring out of tests

* leave some local references in
2025-10-14 15:25:08 -04:00
Cacie Prins 418c43894c fix: stderr tokens are no longer injected when in development mode (#32674)
* do not tag streams when in dev mode, or when electron_enable_logging is true

* test negative of ELECTRON_ENABLE_LOGGING

* changelog

* refactor / better structuring of tag enable/disable

* improvement

* changelog

* flush with an empty buffer if there is nothing left in the decoder

* make flush / transform consistent w/ empty output
2025-10-14 13:55:30 -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
Cacie Prins a7e777a17f chore: adds a .d.ts file that adds jQuery to global window for the driver jquery.cy.ts test (#32698) 2025-10-10 16:36:49 -04:00
Jennifer Shehane 04bd3f1153 chore: remove todomvc testing + other outdated docs / references found (#32694) 2025-10-10 13:50:34 -04:00
Bill Glesias cf73b8a1d9 chore: package @packages/network as an independent bundle (#32633)
* chore: refactor network into two packages, network and network-tools. network-tools is expected to be used in simple environments, where network is intended to be used in the node context. additionally, makes these packages bundable and removes the ts-node entrypoint to make ESM possible.

* chore: sync cloud validations after building packages as the network libs are needed

* chore: fix cloud specs

* remove building packages for requiring build step for creating publish artifacts

* update ts-ignores with reasoning and fix cookie bug (though it shouldn't do this by reference

* bump cache

* update pull-request job as well
2025-10-10 13:41:51 -04:00
Jennifer Shehane bad0cb64f4 fix: remote jQuery is not function thrown when jQuery overwritten in app as non-function (#32682)
* fix: address jquery remote is not a function error

* remove some comments

* add link to issue

* add link to issue in code

* add comments to ignore ts checks

* add changelog entry

* update to ts-expect-error
2025-10-10 13:14:07 -04:00
Bill Glesias 6e7a74245b chore: make the @packages/telemetry an independent bundle (#32623)
* chore: make the @packages/telemetry an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package.

* Update packages/telemetry/README.md
2025-10-10 11:45:31 -04:00
Bill Glesias 328a785507 chore: convert v8-snapshot-require tests to vitest (#32675) 2025-10-10 10:22:47 -04:00
Bill Glesias efcc12f4ac misc: convert @packages/launcher tests from mocha to vitest and always prefer 64-bit install paths to 32-bit (#32656)
* chore: start launcher vitest conversion and conver browsers spec to vitest

* chore: convert darwin spec to vitest

* chore: convert linux spec to vitest

* chore: convert windows spec to vitest

* chore: convert detect spect to vitest

* chore: cleanup unused files

* chore: update browsers orb and replace existing google chrome install

* chore: fix detect spec to use actual implementation of cp.spawn

* chore: convert thennable promise test that was missed in detect spec

* misc: add changelog entry

* chore: remove mock comment

* remove duplicate entry
2025-10-09 10:45:48 -04:00
Jennifer Shehane 24304a62d0 chore: update errors to be stringified when object (#32663)
* chore: update errors to be stringified when object

* handle circular dependencies

* add serialize-error npm package

* downgrade serialize-error to cjs compatible version

* move to prod dep

* move safeErrorSerialize further out into Cloud dir

* remove redundancies in studio tests

* handle undefined

* fix undefined
2025-10-09 10:36:46 -04:00
Bill Glesias a2d2f46876 chore: convert @packages/icons to a compiled package and convert tests to vitest (#32649)
* chore: convert tests to vitest

* chore: make icons builds from source and remove ts-node entry point to make ESM compatible

* make sure the icons tests actually run in CI

* correctly configure ES Module for packages/icons

* chore: update ESM migration
2025-10-08 10:31:23 -04:00
Ryan Manuel c3828e5206 chore: (cy.prompt) fix prompt driver tests during contributor workflows (#32667)
* chore: (cy.prompt) fix prompt driver tests during contributor workflows

* chore: (cy.prompt) fix prompt driver tests during contributor workflows

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

* rework test
2025-10-08 08:55:11 -05:00
Alejandro Estrada 0c718e0e04 feat: add toggle to hide fetch requests (#32658)
* chore: add toggle to hide fetch requests

* Add test

* Fix tests

* Update with code review

* Update with code review, add test

* Add changelog entry

* typo

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-10-07 14:24:27 -04:00
Matt Schile 74bae6484a internal: (studio) display cert error (#32657) 2025-10-07 10:07:02 -06:00
erikeichmuller 1804d35316 misc: Next button visibility and behaviour during stepping. Fixes #32476 (#32536)
* fix: Next button visibility and behaviour during stepping. Fixes #32476

* docs: add changelog entry for Next button fix

* test: update header tests for Next button visibility testing

* fix: updated next button behaviour and testing

* docs: add PR reference to changelog entry for #32476

* docs: update changelog entryfor #32476

* fix: reset hasBeenPaused on run:start; replace isResumed with hasBeenPaused; update controls

* Update changelog entry

* Update packages/reporter/cypress/e2e/header.cy.ts

Co-authored-by: mabela416 <mabelamaya1996@gmail.com>

---------

Co-authored-by: eriei013 <eriei013@student.liu.se>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: mabela416 <mabelamaya1996@gmail.com>
2025-10-07 10:42:31 -04:00
Ryan Manuel e3f4064ac1 internal: rename excludeFromAI type (#32653)
* 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

* clean up

* fix: (cy.prompt) rename exclude from AI to parameters

* fix: (cy.prompt) rename exclude from AI to privateNoCache

* further rename and build binary

* Update packages/frontend-shared/src/locales/en-US.json

* fix tests

* rename to placeholders

---------

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>
2025-10-06 16:37:59 -05:00
Tyler Biethman b1ec29408f internal: (studio) update session id on studio initialization (#32648)
* fix: update studio session id on init

* Adding tests
2025-10-05 12:36:44 -05: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
Matt Schile b1f61fb23b internal: (studio) remove CYPRESS_ENABLE_CLOUD_STUDIO_AI env (#32625) 2025-10-03 13:51:13 -06: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
Bill Glesias 739289ad89 chore: convert @packages/socket tests to vitest and TypeScript (#32640) 2025-10-03 11:18:46 -04:00
Alejandro Estrada 3909ed07a0 misc: Add more spec actions button and new back button for Studio mode (#32611)
* chore: Add more spec actions button

* Update styles, and update studio components

* Refactor Reporter components to streamline studio test handling

- Removed `displayStatsAndControls` prop from `Header` and adjusted rendering logic based on `isStudioSingleTest`.
- Updated `RunnableHeader` and `RunnablePopoverOptions` to conditionally render elements based on `isStudioSingleTest`.
- Improved code readability and maintainability by consolidating logic related to studio tests.

* Refactor Header and StudioTest components for improved styling and functionality

- Updated the `Header` component to remove the `isStudioSingleTest` prop from `RunnableHeader` rendering.
- Modified the `StudioTest` component to change the button styling from 'outline-dark' to 'outline-indigo' and updated the stroke color of the icon accordingly.

* Update tests

* Update tests

* Fix styles

* changelog entry

* Add all tests tooltip

* Update styles

* maybe make semantic-commit happy

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-10-03 10:52:02 -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
Matt Schile 43404f1e92 internal: (studio) pass the getProjectOptions function (#32573) 2025-10-02 17:37:02 -06:00
Ryan Manuel 9837082fa4 internal: (studio) do not retry on cert failures (#32631)
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* Fix SSL certificate verification for cloud requests

Fixed SSL certificate verification for Cypress cloud requests.

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* internal: (studio) do not retry on cert failures

* Update packages/server/test/unit/cloud/api/studio/post_studio_session_spec.ts

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

* Update packages/server/test/unit/cloud/api/studio/post_studio_session_spec.ts

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

* fix types

---------

Co-authored-by: Matt Schile <mschile@cypress.io>
2025-10-02 17:58:01 -05:00
Ryan Manuel 3b80385210 fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized (#32629)
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* Fix SSL certificate verification for cloud requests

Fixed SSL certificate verification for Cypress cloud requests.

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* Update packages/data-context/src/sources/UtilDataSource.ts

* fix tests

* fix tests
2025-10-02 15:52:07 -05:00
Bill Glesias a4b7dcddc3 chore: convert @packages/network tests from mocha to vitest (#32630)
* start vitest convertion and convert connect spec to vitest

* chore: convert agent spec to vitest

* chore: convert block spec to vitest

* chore: convert client-certificates test to vitest and remove circular dependency on singletoon in agent and client certificats

* chore: convert the connect spec to vitest

* chore: convert cors spec to vitest

* chore: convert document domain spec to vitest

* chore: convert uri spec to vitest

* chore: cleanup files
2025-10-02 15:13:01 -04:00
Mike McCready 3f1a150ab3 chore(deps): update cypress-real-events to 1.15.0 (#32628) 2025-10-02 14:38:39 -04:00
Bill Glesias ca4f515290 chore: convert rewriter tests to vitest (#32615) 2025-10-02 14:05:00 -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
Bill Glesias 7062573933 chore: make the @packages/scaffold-config an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32614) 2025-10-01 15:52:38 -04:00
Bill Glesias d0c4dd9972 chore: make the @packages/resolve-dist an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32613) 2025-10-01 15:51:20 -04:00
Bill Glesias 2e81887764 chore: make the @packages/config an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32612) 2025-10-01 15:49:17 -04:00
Bill Glesias bb8d9aebda chore: make the @packages/errors an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32610) 2025-10-01 15:45:44 -04:00
Bill Glesias 2cf1b06bf6 chore: make the @packages/types an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32608) 2025-10-01 15:41:08 -04:00
Bill Glesias 504b153005 chore: convert @packages/data-context from mocha to jest (#32598)
* start jest conversion and covnert authaction to jest

* chore: conver codegenaction to jest

* chore: convert cohorts action spec to vitest

* chore: convert dataEmitterActions to jest

* chore: convert event collector action to vitest

* chore: convert local settings action spec tojest

* chore: convert notification action to vitest

* chor: convert project actions to vitest and fix pretty-formnat

* chore: convert code-generator spec to jest

* chore: convert spec options spec to jest

* chore: convert project config ipc to jest

* chore: convert projectconfigmanager tests to jest

* chore: convert project lifecycle manager tests to jest

* chore: conver poller spec to jest

* chore: convert browser data source to jest

* chore: convert cloud dats source to jest

* chore: convert gitdatasource unit tests to jest

* chore: convert FileDataSource to jest

* chore: convert git data source to jest

* chore: convert graphql data source to jest

* chore: convert project data source to jest

* chore: convert revelvant runs data source to jest

* chore: convert relevant run specs data source to jest

* chore: convert remote request data source to jest

* chore: convert versions data source spec to jest

* chore: convert wizard data source spec to jest

* chore: convert document node builder to jest

* chore: convert has TypeScript to jest

* chore: convert test counts spec to jest

* chore: convert weighted choice spec to jest

* chore: convert config file updater to jest

* clean up files to allow tests to run in band but out of order, add README, cleanup unused scripts and dependencies

* fix deprecation warning from ts-jest via isolated modules

* chore: adjust expected result count

* chore: clean up types

* turn back on no implicit any and reinstall graphql package in frontend shared

* fix isFocusSupported mock

* chore: copy over the old data-context-helper into the server as the one in the data-context package is written in jest now

* chore: fix code review findings from cursor

* fix incorrect expect async throw

* chore: remove use of this in projectData source

* add docs to copied data-context helper and fix cursor detected issue
2025-09-30 17:16:17 -04:00
Bill Glesias f9c3f75563 chore: bundle the root package.json as an installable package (#32544)
* chore: bundle the root package.json as an installable package

* Update packages/root/README.md

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

* Update guides/esm-migration.md

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

* Update packages/root/README.md

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

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-09-30 17:15:18 -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
Jennifer Shehane e1d92bfb28 chore: Removed unused / no longer needed errors (#32595)
* chore: Removed unused / no longer needed errors

* removed unused variables
2025-09-30 14:45:24 -04:00