When I visit URL:
When I visit {string} Copy
When I visit {string}
Optional
With absolute URL:
When I visit "https://example.com/" Copy
When I visit "https://example.com/"
With relative URL:
When I visit "/" Copy
When I visit "/"
Cypress baseUrl must be defined for relative URL to work.
baseUrl
If the page does not respond with a 2xx status code, then this step will fail:
2xx
When I visit "/404" # fail Copy
When I visit "/404" # fail
If you don't want status codes to cause failures, then pass the option:
When I visit "/404" | failOnStatusCode | false | Copy
When I visit "/404" | failOnStatusCode | false |
When I visit URL: