mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-19 01:12:17 +03:00
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import { test as setup } from '@playwright/test';
|
|
import authUtil from '../utils/auth.util';
|
|
import { cleanupBackend } from '../utils/cleanup.util';
|
|
|
|
const authFile = './.auth/user.json';
|
|
|
|
setup('authenticate', async ({ page }) => {
|
|
await cleanupBackend();
|
|
|
|
await authUtil.authenticate(page);
|
|
await page.waitForURL('/settings/account');
|
|
|
|
await page.context().storageState({ path: authFile });
|
|
});
|