I am trying to set different environment for my test suite in Cypress. When I provide Cypress this dictionary as a JSON, Cypress throws error. Its unable to read the JSON (its unable to read users array (works fine without it)).
{
"baseUrl": "https://staging-econsole.esihs.net/",
"env": {
"platform": "staging",
"api_server": "https://pro.esiapi.io",
"users": [
{
"name": "test01",
"email": "[email protected]"
},
{
"name": "test02",
"email": "[email protected]"
}
]
}
}
Or can anyone suggest whats the best way to configure different users in Cypress. I have read there documentation and I want to configure different users via plugin.