diff --git a/apps/web/playwright/e2e/oidc/oidc-native.spec.ts b/apps/web/playwright/e2e/oidc/oidc-native.spec.ts index 21b79a1d13..02d46f4e6e 100644 --- a/apps/web/playwright/e2e/oidc/oidc-native.spec.ts +++ b/apps/web/playwright/e2e/oidc/oidc-native.spec.ts @@ -101,10 +101,9 @@ test.describe("OIDC Native", { tag: ["@no-firefox", "@no-webkit"] }, () => { await expect( page.getByText("For security, this session has been removed. Please sign in again."), ).toBeVisible(); - //await expect(page).toMatchScreenshot("token-expired.png", { includeDialogBackground: true }); + await expect(page).toMatchScreenshot("token-expired.png", { includeDialogBackground: true }); - const localStorageKeys = await page.evaluate(() => Object.keys(localStorage)); - expect(localStorageKeys).toHaveLength(0); + await expect.poll(() => page.evaluate(() => Object.keys(localStorage))).toHaveLength(0); }, ); diff --git a/apps/web/playwright/snapshots/oidc/oidc-native.spec.ts/token-expired-linux.png b/apps/web/playwright/snapshots/oidc/oidc-native.spec.ts/token-expired-linux.png new file mode 100644 index 0000000000..7a6583e380 Binary files /dev/null and b/apps/web/playwright/snapshots/oidc/oidc-native.spec.ts/token-expired-linux.png differ