cypress-io/cypress-example-circleci-orb

A way to conditionally record tests

a-tokyo opened this issue · 0 comments

At the moment there's no way to conditionally record the tests.

The only way to trigger recording is by hardcoding the record: true in the Orb declaration.

In our case, we want to record tests on staging branch only.

Is there any way to achieve this?

I noticed multiple people have the same issue eg: https://discuss.circleci.com/t/cast-an-environment-variable-to-a-boolean/37867/2https://github.com/cypress-io/cypress-example-circleci-orb/issues/2