cypress-io/cypress-example-circleci-orb

How to pass conditional --record CLI flag

bahmutov opened this issue · 4 comments

  • based on record parameter?
  • and it would be nice to check if the environment variable CYPRESS_RECORD_KEY is present too maybe

I don't think we want to conditionally turn off recording if CYPRESS_RECORD_KEY is not present. The test runner already checks for this (based on whether or not its a fork) and will no longer error when that key is not present.

If you added this, then people forgetting to pass this value would not record and likely may not notice it until its too late. It should error if CYPRESS_RECORD_KEY is not present.

@bahmutov Thanks for your response!

I checked the documentation. There's no possible way to conditionally record the tests.

In my case, I want record staging branch tests only. This is not possible atm