Skip to content

Conversation

astone123
Copy link
Contributor

@astone123 astone123 commented Aug 21, 2025

Services PR (internal)

Additional details

This PR adds support for using the @cypress/grep package in open mode while using Cypress Studio. It fixes two issues to do this:

  • Attach stackUtils to the global Cypress object so that it's accessible from services
  • Temporarily remove @cypress/grep environment configuration when studio is active - this allows a studio-created test to run in single-test mode even when it is filtered out by @cypress/grep.

Steps to test

  1. Run Studio in development with the services PR (internal)
  2. Install and configure @cypress/grep for your project
  3. Launch Cypress with a grep argument either in the project configuration or CLI argument (see code for list of variables)
  4. Verify that Cypress Studio works as intended - you are able to create tests and edit existing tests - and no @cypress/grep-specific error messages appear.

I have a draft to add some e2e tests to cover this, but I can't merge them in until the services PR gets deployed because of the nature of the studio tests.

#32341

How has the user experience changed?

PR Tasks

@astone123 astone123 self-assigned this Aug 21, 2025
Copy link

cypress bot commented Aug 21, 2025

cypress    Run #65343

Run Properties:  status check passed Passed #65343  •  git commit fca6c14a64: Merge branch 'develop' into studio-grep-support
Project cypress
Branch Review studio-grep-support
Run status status check passed Passed #65343
Run duration 20m 56s
Commit git commit fca6c14a64: Merge branch 'develop' into studio-grep-support
Committer Adam Stone-Lord
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 11
Tests that did not run due to a developer annotating a test with .skip  Pending 1102
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26661
View all changes introduced in this branch ↗︎
UI Coverage  44.86%
  Untested elements 188  
  Tested elements 157  
Accessibility  97.71%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 110  

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@mschile mschile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a couple comments.

@astone123 astone123 requested a review from mschile September 3, 2025 21:37
Co-authored-by: Matt Schile <mschile@cypress.io>
@astone123 astone123 requested a review from mschile September 4, 2025 15:03
@astone123 astone123 merged commit 4671317 into develop Sep 8, 2025
89 of 91 checks passed
@astone123 astone123 deleted the studio-grep-support branch September 8, 2025 13:55
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 9, 2025

Released in 15.2.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.2.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Sep 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Studio: Fails to retrieve test block when using @cypress/grep
2 participants