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 open - new projectId creation not respecting --config-file #5747

Closed
oak-wildwood opened this issue Nov 19, 2019 · 3 comments · Fixed by #18240
Closed

cypress open - new projectId creation not respecting --config-file #5747

oak-wildwood opened this issue Nov 19, 2019 · 3 comments · Fixed by #18240
Assignees
Labels
topic: config file Issues around the configuration file type: bug

Comments

@oak-wildwood
Copy link

oak-wildwood commented Nov 19, 2019

Current behavior:

Creating a new projectId using cypress open with a different config file results in the new projectId being placed into the cypress.json file.

Desired behavior:

I expect Cypress to honor the value passed to the --config-file option and add the new projectId to the specified configuration file and not the original cypress.json

Steps to reproduce: (app code and test code)

  1. Clone this repo: git@github.com:oak-wildwood/cypress-test-tiny.git
  2. Run npm i
  3. Run npx cypress open --config-file cypress-other.json
  4. Sign in and click Setup project to record
  5. On the modal click Set up project to complete
  6. See the changes to the wrong file

image

Versions

Cypress 3.6.1, MacOS Catalina, Chrome 78

@jennifer-shehane
Copy link
Member

The UI also doesn't seem to react to a new project being created. I have to kill cypress and restart to see the changes. I think this may be due to this option, unless there's some other variable involved.

@jennifer-shehane jennifer-shehane added the topic: config file Issues around the configuration file label Sep 24, 2021
elevatebart added a commit that referenced this issue Sep 24, 2021
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: work in progress labels Sep 24, 2021
@elevatebart elevatebart self-assigned this Sep 27, 2021
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Sep 27, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 27, 2021

The code for this is done in cypress-io/cypress#18240, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 27, 2021

Released in 8.5.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: config file Issues around the configuration file type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants