Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
t3chguy committed Jun 20, 2024
1 parent 3b5b01f commit e26f7fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playwright/e2e/crypto/crypto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ test.describe("Cryptography", function () {
// Reload to work around a Rust crypto bug where it can hold onto the indexeddb even after logout
// https://github.com/element-hq/element-web/issues/25779
await page.addInitScript(() => {
// Clear localStorage as the user/pageWithCredentials fixtures will re-inject them on reload otherwise
// and by logging out we just invalidated the token that will be injected, causing a 401 unauth error.
window.localStorage.clear();
});
await page.reload();
Expand Down

0 comments on commit e26f7fc

Please sign in to comment.