mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 20:32:29 +00:00
feat: add CLI command for importing and exporting Pocket ID data (#998)
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
15
tests/specs/fixtures/auth.setup.ts
vendored
Normal file
15
tests/specs/fixtures/auth.setup.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { test as setup } from '@playwright/test';
|
||||
import { pathFromRoot } from 'utils/fs.util';
|
||||
import authUtil from '../../utils/auth.util';
|
||||
import { cleanupBackend } from '../../utils/cleanup.util';
|
||||
|
||||
const authFile = pathFromRoot('.tmp/auth/user.json');
|
||||
|
||||
setup('authenticate', async ({ page }) => {
|
||||
await cleanupBackend();
|
||||
|
||||
await authUtil.authenticate(page);
|
||||
await page.waitForURL('/settings/account');
|
||||
|
||||
await page.context().storageState({ path: authFile });
|
||||
});
|
||||
Reference in New Issue
Block a user