mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-12 21:55:14 +00:00
feat: add support for translations (#349)
Co-authored-by: Kyle Mendell <kmendell@outlook.com> Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
import { test as setup } from '@playwright/test';
|
||||
import passkeyUtil from './utils/passkey.util';
|
||||
import authUtil from './utils/auth.util';
|
||||
import { cleanupBackend } from './utils/cleanup.util';
|
||||
|
||||
const authFile = 'tests/.auth/user.json';
|
||||
|
||||
setup('authenticate', async ({ page }) => {
|
||||
await cleanupBackend();
|
||||
await page.goto('/login');
|
||||
|
||||
await (await passkeyUtil.init(page)).addPasskey();
|
||||
|
||||
await page.getByRole('button', { name: 'Authenticate' }).click();
|
||||
await authUtil.authenticate(page);
|
||||
await page.waitForURL('/settings/account');
|
||||
|
||||
await page.context().storageState({ path: authFile });
|
||||
|
||||
Reference in New Issue
Block a user