From 7a753a4a311a3b7162983cb6f6c6287ce5c7e77e Mon Sep 17 00:00:00 2001 From: atrincas Date: Thu, 26 Dec 2024 12:33:59 +0100 Subject: [PATCH] Hide IntroMdal during e2e --- e2e/playwright.config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts index e918884a..ae3f6d44 100644 --- a/e2e/playwright.config.ts +++ b/e2e/playwright.config.ts @@ -49,6 +49,22 @@ export default defineConfig({ baseURL: APP_URL, /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry", + storageState: { + cookies: [], + origins: [ + { + origin: APP_URL, + localStorage: [ + // Prevent intro modal from always showing during tests + // TODO: Write a separate test to check if the intro modal is shown + { + name: "hideIntroModal", + value: "true", + }, + ], + }, + ], + }, }, /* Configure projects for major browsers */ projects: [