Skip to content

Commit 3455705

Browse files
docs(api): fix caution in clearallsessionstorage.mdx (#5143)
Co-authored-by: Emily Rohrbough <[email protected]>
1 parent e6b2ab6 commit 3455705

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/api/commands/clearallsessionstorage.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ data for all origins with which the test has interacted.
88

99
:::caution
1010

11-
Cypress automatically runs this command _before_ each test to prevent state from
12-
being shared across tests when
11+
Cypress automatically clears all session storage _before_ each test to prevent
12+
state from being shared across tests when
1313
[test isolation](/guides/core-concepts/writing-and-organizing-tests#Test-Isolation)
14-
is `on`. You shouldn't need to use this command unless you're using it to clear
15-
localStorage inside a single test or test isolation is `off`.
14+
is enabled. You shouldn't need to use this command unless you're using it to
15+
clear sessionStorage inside a single test or test isolation is disabled.
1616

1717
:::
1818

0 commit comments

Comments
 (0)