You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that you can supply env via defineConfig via the top level env property, the e2e env property and setupNodeEvents(_, configenv property, these appear to not be all propagating to Cypress.env(..)
Desired behavior
Expect all forms of providing envs via defineConfig to be propagated to Cypress.env(..)
Setting your e2e.env as e2e:{env:{...}} simply overwrites top-level env.
As I see, this way we can use top-level env like default, and switch it to another if we need it for another testing type. I couldnt find it in docs, but I believe it is normal case.
If you want to keep your top-level env, but have many fields to add and find dict-view prettier, you can still use something like this:
Current behavior
Given that you can supply
env
viadefineConfig
via the top levelenv
property, the e2eenv
property andsetupNodeEvents(_, config
env
property, these appear to not be all propagating toCypress.env(..)
Desired behavior
Expect all forms of providing
envs
viadefineConfig
to be propagated toCypress.env(..)
Test code to reproduce
Given this example:
Placeholder test:
Only
BB
andCC
envs are propagated:Cypress Version
13.13.0
Node version
18.19
Operating System
macOS Sonoma 14.5
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: