Set an environment variable from an api response in the plugin #22801
Unanswered
klquam
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.
-
Is it possible to use the node module https within a plugin and assign a response object to cypress.env.MY_FEATURES? I haven't run across any examples so far and everything I have tried does not appear in the settings when cypress opens. Example as follows(v7.5 but also unsuccessful in v10):
cypress.json
experimentalInteractiveRunEvents: true
cypress/plugins/index.js
I have also tried wrapping the https call in a promise and calling it like so:
Beta Was this translation helpful? Give feedback.
All reactions