From e26f7fc41deeeeda648950dac9b8edb5a32b8455 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 20 Jun 2024 15:19:58 +0100 Subject: [PATCH] Add comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright/e2e/crypto/crypto.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playwright/e2e/crypto/crypto.spec.ts b/playwright/e2e/crypto/crypto.spec.ts index bea23ab9853..69981eafe8d 100644 --- a/playwright/e2e/crypto/crypto.spec.ts +++ b/playwright/e2e/crypto/crypto.spec.ts @@ -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();