Updated E2E tests.

This commit is contained in:
2025-12-04 04:44:58 +00:00
parent ea1ddbbe6f
commit 0355c55fc0
7 changed files with 79 additions and 79 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ export async function createVirtualAuthenticator(
options: VirtualAuthenticatorOptions = {}
): Promise<VirtualAuthenticator> {
const cdpSession = await page.context().newCDPSession(page)
// Enable WebAuthn in CDP
await cdpSession.send('WebAuthn.enable', {
enableUI: false, // Suppress any UI prompts
@@ -81,10 +81,10 @@ export const test = base.extend<{
virtualAuthenticator: async ({ page }, use) => {
// Create virtual authenticator before test
const authenticator = await createVirtualAuthenticator(page)
// Run the test
await use(authenticator)
// Cleanup after test
await removeVirtualAuthenticator(authenticator)
},