How to share value from before:spec
to spec
in order to use value in tests
#22719
Unanswered
alexniculae
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Q: Is it possible to share a value from the Before Spec API to the actual spec, so it can be used in the tests?
For example I tried to do it by leveraging the config object of Cypress and trying to create a new Cypress env var:
Unfortunately I cannot get this to work, but I'm not sure if
A solution for this or any other suggestions (that use the
before:spec
) would be great! 🙂Beta Was this translation helpful? Give feedback.
All reactions