Skip to content

Test fails when baseUrl in cypress.json in not included #59

@poponuts

Description

@poponuts

I use config files to switch between environment URL's. I have multiple URL's I need to initiate with as well on my different test suites. Hence, I am not using a specific baseUrl. However, if baseUrl is not present in cypress.json, my tests fail. I had to include this variable with an actual value (e.g. https://loginsite.com) but will never use it.
I understand it is not best practice, but switching between environments would require me with one environment 'http' and another having 'https' and multiple other reasons. Example:

"baseUrls":
{
"protocol": "https://",
"domain": "test.com",
"subDomain": "login"
}

2020-03-28_0-35-43

This is just a minor issue but I would like a cleaner code and not include parameters/variables that are not being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions