Commit df047b0
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 <[email protected]>
* PR comments
---------
Co-authored-by: Copilot <[email protected]>
* 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 <[email protected]>
* Update packages/server/lib/browsers/browser-cri-client.ts
Co-authored-by: Bill Glesias <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* fix test
---------
Co-authored-by: Matt Schile <[email protected]>
* 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 <[email protected]>
* reefactor
* chore: (cy.prompt) rework the file save lifecycle
* rework types
* add unit tests
---------
Co-authored-by: estrada9166 <[email protected]>
Co-authored-by: Copilot <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
---------
Co-authored-by: Ryan Manuel <[email protected]>
* 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 <[email protected]>
---------
Co-authored-by: Tim Griesser <[email protected]>
* 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 <[email protected]>
* 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: 3cbcf6c Bump cache version to 10-3-2025
* index on feat/cy-prompt: 3cbcf6c Bump cache version to 10-3-2025
* index on feat/cy-prompt: 3cbcf6c Bump cache version to 10-3-2025
* blank
* fix build
---------
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Bill Glesias <[email protected]>
Co-authored-by: Alejandro Estrada <[email protected]>
Co-authored-by: Matt Schile <[email protected]>
Co-authored-by: Tim Griesser <[email protected]>
Co-authored-by: Jennifer Shehane <[email protected]>
Co-authored-by: Jennifer Shehane <[email protected]>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>1 parent b1f61fb commit df047b0
File tree
143 files changed
+5793
-552
lines changed- .circleci
- src/pipeline
- workflows
- cli
- types
- guides
- packages
- app
- cypress/e2e/runner
- src
- prompt
- runner
- store
- config
- src
- test
- __snapshots__
- project
- data-context
- schemas
- src
- actions
- data
- sources
- test/unit/actions
- driver
- cypress
- e2e
- commands
- prompt
- cypress
- e2e/origin
- commands
- fixtures
- src
- cross-origin
- events
- cypress
- cy
- commands
- prompt
- querying
- sessions
- types
- cypress
- cy
- errors
- src
- test
- __snapshots__
- launchpad/cypress/e2e
- reporter
- cypress
- e2e
- support
- src
- commands
- errors
- instruments
- lib
- server
- lib
- browsers
- cloud
- api
- cy-prompt
- studio
- cy-prompt
- network
- studio
- modes
- test
- support/fixtures/cloud/cy-prompt
- unit
- browsers
- cloud
- api
- cy-prompt
- studio
- cy-prompt
- modes
- types/src
- cy-prompt
- scripts
- binary
- gulp
- tasks
- system-tests
- __snapshots__
- projects/experimentalPromptCommand
- cypress
- e2e
- plugins
- support
- test
- tooling/v8-snapshot/cache
- darwin
- linux
- win32
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
143 files changed
+5793
-552
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
684 | 686 | | |
685 | 687 | | |
686 | 688 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
703 | 705 | | |
704 | 706 | | |
705 | 707 | | |
| |||
755 | 757 | | |
756 | 758 | | |
757 | 759 | | |
758 | | - | |
| 760 | + | |
759 | 761 | | |
760 | 762 | | |
761 | 763 | | |
| |||
1849 | 1851 | | |
1850 | 1852 | | |
1851 | 1853 | | |
1852 | | - | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
1853 | 1860 | | |
1854 | 1861 | | |
1855 | 1862 | | |
| |||
2898 | 2905 | | |
2899 | 2906 | | |
2900 | 2907 | | |
2901 | | - | |
2902 | | - | |
| 2908 | + | |
| 2909 | + | |
2903 | 2910 | | |
2904 | 2911 | | |
2905 | 2912 | | |
2906 | 2913 | | |
2907 | 2914 | | |
2908 | 2915 | | |
2909 | 2916 | | |
2910 | | - | |
| 2917 | + | |
2911 | 2918 | | |
2912 | | - | |
2913 | | - | |
| 2919 | + | |
| 2920 | + | |
2914 | 2921 | | |
2915 | 2922 | | |
2916 | 2923 | | |
2917 | 2924 | | |
2918 | | - | |
| 2925 | + | |
2919 | 2926 | | |
2920 | | - | |
2921 | | - | |
| 2927 | + | |
| 2928 | + | |
2922 | 2929 | | |
2923 | 2930 | | |
2924 | 2931 | | |
| |||
3140 | 3147 | | |
3141 | 3148 | | |
3142 | 3149 | | |
3143 | | - | |
| 3150 | + | |
3144 | 3151 | | |
3145 | 3152 | | |
3146 | 3153 | | |
| |||
3272 | 3279 | | |
3273 | 3280 | | |
3274 | 3281 | | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
3275 | 3287 | | |
3276 | 3288 | | |
3277 | 3289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
53 | 70 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments