mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-22 01:11:41 +03:00
refactor: move e2e tests to root of repository
This commit is contained in:
12
tests/utils/auth.util.ts
Normal file
12
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