Reputation: 23
I am writing up some Cypress.io automation tests and i am wanting to set up a env config but i can't work out how to get this bit working. This is using Cypress.io and the cypress-env plugin from https://github.com/alecmestroni/cypress-env#readme.
So i have this environment config json and i am wanting to set the baseUrl so that it applied the first part and then collects the rest of the url from another json that is a list of urls
I will have multiple environment configs which is why the need for wanting to set part of the url in this file and have a single file with all the urls
{
"baseUrl" : "https://qa." "cypress/fixtures/urls.json",
"specPattern" : "cypress/e2e/**/**.ts",
"excludeSpecPatter": "cypress/e2e/**/toExclude.ts",
"supportFile": "cypress/support/command.ts",
"env" : {
"envName" : "qa"
}
}
[
"google.co.uk/",
"facebook.com/"
]
Upvotes: 0
Views: 17