Skip to content

baseUrl not used in cypress.env.json #22181

Closed as not planned
Closed as not planned
@bvanderneut

Description

@bvanderneut

Current behavior

If you have a baseUrl in the cypress.env.json it's not beeing used.

Desired behavior

just like the previous version I would like to have a local file cypress.env.json where the baseUrl is beeing read and used in my test.

Test code to reproduce

// Tried both ways and did not work

{
	"e2e": {
		"baseUrl": "https://google.com/"
	},
	"baseUrl": "https://google.com/"
}

Cypress Version

10.0.3

Other

It should work according the documentation:
https://docs.cypress.io/guides/guides/environment-variables#Option-2-cypress-env-json

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingstaleno activity on this issue for a long periodtype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions