-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: cy.prompt experimental command [Feature Flagged] #31752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cypress
|
||||||||||||||||||||||||||||
| Project |
cypress
|
| Branch Review |
feat/cy-prompt
|
| Run status |
|
| Run duration | 17m 52s |
| Commit |
|
| Committer | Ryan Manuel |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
2
|
|
|
132
|
|
|
0
|
|
|
5590
|
| View all changes introduced in this branch ↗︎ | |
* 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]>
* 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]>
…#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 * test caching * fix types
…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 * Fix ts, add test * Fix error title * Fix ts * Fix ts
* share error utils with cloud * additional rework * Fix command, add isOpenMode * Add / fix test * fix ts --------- Co-authored-by: Ryan Manuel <[email protected]>
…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 * fix tests * minor tweak
…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]>
estrada9166
approved these changes
Oct 3, 2025
ryanthemanuel
commented
Oct 3, 2025
Updated cache version to trigger CI cache recreation.
Updated changelog with new features and bug fixes.
Collaborator
Author
|
The code owner approval was here: #31752 (comment) |
Contributor
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cy.prompt– Ability to generate Cypress tests from natural language #31826Additional details
We've implemented a new experimental command:
cy.prompt()(that is still gated behind a feature flag). It will let you write tests using natural language prompts, like:Cypress will translate this into test steps, execute them, and adapt as the application under test changes (similar to self-healing behavior).
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation?type definitions?Note
Adds a feature-flagged experimental
cy.promptcommand powered by a cloud-delivered bundle, with app/reporter UI, server/browser integration, a newexperimentalPromptCommandconfig flag, and comprehensive tests.cy.prompt(feature-flagged) with newexperimentalPromptCommandconfig; reserves command name; adds error handling and types.preserveRunStatehelper.PromptGetCodeModal,PromptMoreInfoNeededModal) and Piniaprompt-store.CyPromptLifecycleManager/CyPromptManager, routes, socket listeners, bundle download/verification, error reporting, and connection via CDP.connectCyPromptToBrowser; CRI client clones/manages additional target; reset/close updates.Written by Cursor Bugbot for commit 3b81d4b. This will update automatically on new commits. Configure here.