Skip to content
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

cypress should live reload when changes made to fixturesFolder #6606

Closed
brettz9 opened this issue Mar 2, 2020 · 2 comments
Closed

cypress should live reload when changes made to fixturesFolder #6606

brettz9 opened this issue Mar 2, 2020 · 2 comments
Labels
stage: ready for work The issue is reproducible and in scope topic: file watching 👀 topic: fixtures Fixture loading and usage type: enhancement Requested enhancement of existing feature

Comments

@brettz9
Copy link

brettz9 commented Mar 2, 2020

Current behavior:

When changing plugins or fixtures, the tests opened by cypress open are not auto-reloaded as they are when changes are made to cypress/integration or cypress/support files.

Desired behavior:

Unless there is some good reason for it, I would expect the pages would reload. While I can see that plugins might be more consequential in having unintended side-effects, so too can support files (which can use plugins by way of commands), I would at least think that changes tofixtures would trigger reloads, and I'd personally like to see changes to plugins be able to do so.

Test code to reproduce

  1. Run cypress open on some repository.
  2. Open a test file
  3. Modify a file in /plugins
  4. See that the test file does not reload (nor does the command line show changes)

Versions

Cypress: 4.1.0
OS: Mac 10.15.2
Browser: Firefox or Chrome

@jennifer-shehane jennifer-shehane changed the title cypress does not watch file changes to plugins or fixtures directories cypress does not live reload changes to plugins or fixtures directories Mar 2, 2020
@jennifer-shehane
Copy link
Member

Updating on changes to plugins is duplicate of #2869 - we can't actually watch and just rerun it because it could crash Cypress essentially, so the proposal is to display a message to warn that there have been changes. There is an open PR - but it is stale atm.

Change to fixtures does take effect when reloading the page, but yes - live reload does not reload the test when fixtures are changed.

I will update the scope of this issue as a request to live reload when changes are made to fixturesFolder.

@jennifer-shehane jennifer-shehane changed the title cypress does not live reload changes to plugins or fixtures directories cypress should live reload when changes made to fixturesFolder Mar 2, 2020
@jennifer-shehane jennifer-shehane added type: enhancement Requested enhancement of existing feature topic: file watching 👀 labels Mar 2, 2020
@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Mar 2, 2020
@bahmutov bahmutov added the topic: fixtures Fixture loading and usage label Sep 15, 2020
@jennifer-shehane
Copy link
Member

Since this request has not gotten a lot of interest over the years, we’ll close this issue.

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: ready for work The issue is reproducible and in scope topic: file watching 👀 topic: fixtures Fixture loading and usage type: enhancement Requested enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants