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

ProjectId passed via --config flag pulls to configuration settings in Test Runner but is not used for --record #6546

Closed
CypressCecelia opened this issue Feb 24, 2020 · 6 comments
Labels
existing workaround stale no activity on this issue for a long period type: bug

Comments

@CypressCecelia
Copy link
Contributor

Current behavior:

When running cypress open --config projectId=<PROJECT ID>, the passed project Id is pulled in and displayed in the Project Settings in the Test Runner, overwriting the value in the configuration file.

Screen Shot 2020-02-24 at 2 09 49 PM

However, when running cypress run --record --config projectId=<PROJECT ID> --key <KEY>, the passed projectId in the configuration file is NOT overwritten, and the test does not run due to incorrect key.

Screen Shot 2020-02-24 at 2 03 17 PM

Desired behavior:

ProjectId is not a documented option to the --config/-c flag, but behavior should be consistent on whether it is accepted or not.

Test code to reproduce

Run cypress open --config projectId=<OTHER PROJECT ID> with any value other than what is in the configuration file. The passed value will appear in the Test Runner settings under Project Id.

To recreate the recording issue, run cypress run --record --config projectId=<OTHER PROJECT ID> key <KEY FOR OTHER PROJECT ID> and an error will output that does not match with the project Id in the configuration file.

Versions

4.0.2
macOS 10.15.3

@jennifer-shehane
Copy link
Member

Current Workaround

Just wanted to note that the current workaround for this is to pass a different --config-file containing the projectId you want to pass for recording.

@kevinold
Copy link
Contributor

CYPRESS_PROJECT_ID=new-project-id can be used to override the projectId

@agoldis
Copy link

agoldis commented Sep 9, 2021

@evereq

@jennifer-shehane jennifer-shehane added topic: config file Issues around the configuration file and removed topic: config file Issues around the configuration file labels Sep 24, 2021
@LijinThekkekara
Copy link

What is the status on this now?

@cypress-bot cypress-bot bot added stage: backlog and removed stage: ready for work The issue is reproducible and in scope labels Apr 29, 2022
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 17, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
existing workaround stale no activity on this issue for a long period type: bug
Projects
None yet
Development

No branches or pull requests

6 participants