mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 07:12:19 +00:00
refactor: run formatter
This commit is contained in:
@@ -5,7 +5,7 @@ import { cleanupBackend } from './utils/cleanup.util';
|
||||
const authFile = 'tests/.auth/user.json';
|
||||
|
||||
setup('authenticate', async ({ page }) => {
|
||||
await cleanupBackend();
|
||||
await cleanupBackend();
|
||||
await page.goto('/login');
|
||||
|
||||
await (await passkeyUtil.init(page)).addPasskey();
|
||||
@@ -13,6 +13,5 @@ setup('authenticate', async ({ page }) => {
|
||||
await page.getByRole('button', { name: 'Authenticate' }).click();
|
||||
await page.waitForURL('/settings/account');
|
||||
|
||||
|
||||
await page.context().storageState({ path: authFile });
|
||||
});
|
||||
|
||||
@@ -19,7 +19,7 @@ test('Create OIDC client', async ({ page }) => {
|
||||
await page.getByRole('button', { name: 'Save' }).click();
|
||||
|
||||
const clientId = await page.getByTestId('client-id').textContent();
|
||||
|
||||
|
||||
await expect(page.getByRole('status')).toHaveText('OIDC client created successfully');
|
||||
expect(clientId?.length).toBe(36);
|
||||
expect((await page.getByTestId('client-secret').textContent())?.length).toBe(32);
|
||||
|
||||
@@ -17,5 +17,7 @@ test('Sign in with expired one time access token fails', async ({ page }) => {
|
||||
await page.goto(`/login/${token.token}`);
|
||||
|
||||
await page.getByRole('button', { name: 'Continue' }).click();
|
||||
await expect(page.getByRole('paragraph')).toHaveText('Token is invalid or expired. Please try again.');
|
||||
await expect(page.getByRole('paragraph')).toHaveText(
|
||||
'Token is invalid or expired. Please try again.'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user