Setting cypress context using on("before:run", ...) #14734
Unanswered
benjefferies
asked this question in
Questions and Help
Replies: 0 comments
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'm trying to run a setup step once when cypress/mocha first run. Whilst the tests are running in the browser I want them to have access to some variables I get back from the setup steps.
I recently discovered the
before:run
hook but I can't see a way of making state available for the tests, am I missing something or is this not possible?Beta Was this translation helpful? Give feedback.
All reactions