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

Files are not watched when running cypress open with --component or --e2e #24834

Open
markbrockhoff opened this issue Nov 28, 2022 · 3 comments
Labels
E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.

Comments

@markbrockhoff
Copy link

Current behavior

When starting cypress version 11.2.0 using npx cypress open, selecting a testing type and running a test, changes to the tests source file will trigger a new test run. When opening cypress using npx cypress open --e2e or npx cypress open --component changes to the test file will not trigger a rerun.

Desired behavior

Changes to the test file should automatically trigger a rerun independent of the testing type. As long as cypress is started using cypress open it should not make a difference if the test type is passed via a cli parameter or selected in the ui.

Test code to reproduce

The behaviour can be reproduced by just running npm i cypress in an empty folder, opening it using npx cypress open and automatically scaffolding the example e2e tests. When running one of them changes to its file will trigger a rerun. When cypress is closed and reopened udin npx cypress open --e2e this time changes will no longer cause a rerun.

Cypress Version

11.2.0

Node version

v16.16.0

Operating System

macOS 12.6

Debug Logs

No response

Other

No response

@markbrockhoff markbrockhoff changed the title Files are not watchen when running cypress open wit --component or --e2e Files are not watched when running cypress open wit --component or --e2e Nov 28, 2022
@tnrich
Copy link
Contributor

tnrich commented Nov 28, 2022

I'm also seeing this behavior, very unfortunate

@markbrockhoff markbrockhoff changed the title Files are not watched when running cypress open wit --component or --e2e Files are not watched when running cypress open with --component or --e2e Nov 29, 2022
@verheyenkoen
Copy link
Contributor

Same

@mike-plummer
Copy link
Contributor

Hi @markbrockhoff , thanks for letting us know about this! I've confirmed this is a bug that's still present in 12.0.1 and will get this routed to the team to look into. It looks like there is a workaround by not passing a test mode on the CLI and selecting E2E or CT manually from the launchpad, but obviously that's not ideal and we want to get this fixed. Sorry for the inconvenience!

@nagash77 nagash77 added E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. and removed routed-to-e2e labels Apr 19, 2023
@mike-plummer mike-plummer removed their assignment Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Projects
None yet
Development

No branches or pull requests

6 participants