Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 2, 2024
1 parent 4e62ec9 commit 1eb4ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests-e2e/setup/auth.setup.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 1eb4ecd

Please sign in to comment.