• When I visit URL:

    When I visit {string}
    

    Parameters

    • url: string
    • Optionaloptions: DataTable

    Returns void

    With absolute URL:

    When I visit "https://example.com/"
    

    With relative URL:

    When I visit "/"
    

    Cypress baseUrl must be defined for relative URL to work.

    If the page does not respond with a 2xx status code, then this step will fail:

    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 |