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 });