From 1eb4ecd5b1c56444daa512d30e044fed462a0293 Mon Sep 17 00:00:00 2001 From: Yunus Date: Mon, 2 Dec 2024 08:03:50 +0700 Subject: [PATCH] Fix test --- tests-e2e/setup/auth.setup.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests-e2e/setup/auth.setup.mts b/tests-e2e/setup/auth.setup.mts index a29105b..0302b2e 100644 --- a/tests-e2e/setup/auth.setup.mts +++ b/tests-e2e/setup/auth.setup.mts @@ -6,14 +6,14 @@ const authFile = path.join(import.meta.dirname, '../../playwright/.auth/user.jso setup('authenticate', async ({ page }) => { const domain = process.env.TEST_APP_URL!.replaceAll('https://', '').replaceAll('http://', '').replaceAll(':3000', '') await page.context().addCookies([{ - name: cookieAuthKey, + name: 'app-auth', value: process.env.TEST_APP_AUTH_COOKIES!, httpOnly: false, secure: true, sameSite: 'Lax', path: '/', domain: domain, - expires: 90 * 86400, + expires: -1, }]) await page.context().storageState({ path: authFile });