How to check if Cypress is running in test runner (cypress open) vs cypress run? #18188
bvandercar
started this conversation in
General
Replies: 1 comment
-
Found it-- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does Cypress have a variable I can grab to determine if it's running via
cypress open
orcypress run
? Or any other ideas on how I can determine this? Right now I'm usingCypress.browser.isHeadless
, but this wouldn't work if I wanted to runcypress run --headed
Beta Was this translation helpful? Give feedback.
All reactions