-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Comments
Current WorkaroundJust wanted to note that the current workaround for this is to pass a different |
|
What is the status on this now? |
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. |
This issue has been closed due to inactivity. |
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.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.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
The text was updated successfully, but these errors were encountered: