Dynamically setting baseUrl with `TestConfigOverrides`
See original GitHub issueCurrent behavior
In v9 we were able to set the baseUrl
but it has disappeared from the TestConfigOverrides
type.
Desired behavior
Add the e2e
key to the TestConfigOverrides
type.
Test code to reproduce
Cypress Version
10.0.2
Other
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Dynamically set baseUrl in cypress.json - Stack Overflow
I have a laravel app and have brought in Cypress testing. In my cypress.json file I have the baseUrl value set to a...
Read more >Configuration - Cypress Documentation
This guide is for Cypress 10 and the new JavaScript configuration file format. If you are on an older version of Cypress that...
Read more >How can I change the baseUrl in Cypress dynamically?
we can change baseUrl dynamically by passing baseUrl in command line. This is how baseurl is defined in cypress.json file
Read more >rouch/Cypress: Fast, easy and reliable testing for anything that runs ...
... scripts/support; package-lock.json; binary-url.json; # Allows us to dynamically create eslint rules that override the default for Decaffeinate scripts ...
Read more >Dynamic Multiple Base URL with Annotations | Android
Now we need a flag to manipulate base urls for each retrofit call. We can define an annotation class and set it to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We want to support setting
baseUrl
at the root level in the testConfigOverrides, as we always know at this point which testing type we’re in.The
baseUrl
option was removed with https://github.com/cypress-io/cypress/pull/20589. However, it is still listed as a test configuration option in the docs.Setting the
baseUrl
at the root succeeds:However, setting
baseUrl
withine2e
fails:@estrada9166, do you know if we are intending to support
baseUrl
at the root level or withine2e
for the per-test configuration?