Is it possible to tell if cypress is running via open or run in the tests/commands file. #14296
Unanswered
sl33t
asked this question in
Questions and Help
Replies: 2 comments 5 replies
-
You can find the answer in https://glebbahmutov.com/blog/cypress-tips-and-tricks/#interactive-and-headed-mode but we probably should include this information in the official docs |
Beta Was this translation helpful? Give feedback.
4 replies
-
what would you say is the best way to control the open/run commands along the browsers and environments? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have a command I only want to trigger when cypress is in run mode and I want to ignore it in open mode. Currently I am using a custom script and an environment variable for this. I would like to do this in a native way if possible but cannot find this in the docs.
Beta Was this translation helpful? Give feedback.
All reactions