Optional
key: stringClear all localStorage:
When I clear local storage
Clear localStorage with the key appName
:
When I clear local storage "appName"
Cypress automatically clears all local storage 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 localStorage inside a single test or test isolation is disabled.
When I clear local storage:
Clear
localStorage
data for current domain and subdomain.