Cypress · Junior · Question 5 of 75
What does setting baseUrl in the Cypress config allow?
- 1Running the tests against several sites at once
- 2Blocking every request to other domains
- 3Writing
cy.visit('/login')with relative paths
Show the answer
Correct answer: Writing cy.visit('/login') with relative paths
Explanation
A base URL also makes Cypress check the server is up before the run, and it's easy to change per environment.