Content-Length: 365612 | pFad | http://github.com/cypress-io/cypress/pull/31982

74 internal: (studio) force test re-run if `watchForFileChanges: false` by astone123 · Pull Request #31982 · cypress-io/cypress · GitHub
Skip to content

internal: (studio) force test re-run if watchForFileChanges: false #31982

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

Open
wants to merge 15 commits into
base: release/15.0.0
Choose a base branch
from

Conversation

astone123
Copy link
Contributor

@astone123 astone123 commented Jul 1, 2025

Additional details

This PR updates the app to pass the onTestFileChange function over to the cloud studio code through the addSocketListeners call. Then on the cloud side we can use this function instance to force a re-load of the file after we save it which will cause it to re-run even if the user has disabled file watching.

Steps to test

Test with the cloud PR (it's merged into develop now so you can just test with develop)

How has the user experience changed?

PR Tasks

@astone123 astone123 self-assigned this Jul 1, 2025
Copy link

cypress bot commented Jul 1, 2025

cypress    Run #63631

Run Properties:  status check passed Passed #63631  •  git commit 364cc1c00e: Merge branch 'release/15.0.0' into studio-reload-file-watching-disabled
Project cypress
Branch Review studio-reload-file-watching-disabled
Run status status check passed Passed #63631
Run duration 19m 40s
Commit git commit 364cc1c00e: Merge branch 'release/15.0.0' into studio-reload-file-watching-disabled
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 1103
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26514
View all changes introduced in this branch ↗︎
UI Coverage  45.14%
  Untested elements 187  
  Tested elements 158  
Accessibility  92.87%
  Failed rules  4 critical   9 serious   2 moderate   2 minor
  Failed elements 674  

@astone123 astone123 marked this pull request as ready for review July 1, 2025 19:22
@@ -678,6 +669,8 @@ describe('studio functionality', () => {
it('remains in studio mode when the test name is changed on the file system and file watching is disabled', () => {
launchStudio({ cliArgs: ['--config', 'watchForFileChanges=false'] })

cy.findByTestId('record-button-recording').should('be.visible')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added these to try to reduce some flake with this spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/cypress-io/cypress/pull/31982

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy