Can I ask how to maybe overcome that i setup one baseURL for my cypress but in i want to run tests for different URL in diffrent folders. But setting baseURL limits me only for that particular URL testing
regards
Can I ask how to maybe overcome that i setup one baseURL for my cypress but in i want to run tests for different URL in diffrent folders. But setting baseURL limits me only for that particular URL testing
regards
You can add multiple URLs in your cypress.json file like:
{
"appurl1":"www.website1.com",
"appurl2":"www.website2.com"
}
and then access those in the tests like:
Cypress.config('appUrl1')
Cypress.config('appUrl2')
Check out the cypress docs on Cypress.config.