mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-20 01:14:24 +03: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:
12
frontend/tests/utils/auth.util.ts
Normal file
12
frontend/tests/utils/auth.util.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { Page } from '@playwright/test';
|
||||
import passkeyUtil from './passkey.util';
|
||||
|
||||
async function authenticate(page: Page) {
|
||||
await page.goto('/login');
|
||||
|
||||
await (await passkeyUtil.init(page)).addPasskey();
|
||||
|
||||
await page.getByRole('button', { name: 'Authenticate' }).click();
|
||||
}
|
||||
|
||||
export default { authenticate };
|
||||
Reference in New Issue
Block a user