Function When_I_clear_cookies

  • When I clear cookies:

    When I clear cookies
    

    Clear browser cookies for a domain.

    Parameters

    • Optionaloptions: DataTable

    Returns void

    When I clear cookies
    

    With options:

    When I clear cookies
    | domain | example.com |
    | log | true |
    | timeout | 3000 |

    Cypress automatically clears all cookies before each test to prevent state from being shared across tests when test isolation is enabled. You shouldn't need to use this command unless you're using it to clear a specific cookie inside a single test or test isolation is disabled.