Skip to content

Commit 9938f6e

Browse files
test(passkey): fix the usage of WebAuthn.enable (#1033)
Co-authored-by: Kent C. Dodds <[email protected]>
1 parent 2eb613f commit 9938f6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/e2e/passkey.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { faker } from '@faker-js/faker'
2+
import { type Page } from '@playwright/test'
23
import { expect, test } from '#tests/playwright-utils.ts'
34

4-
async function setupWebAuthn(page: any) {
5+
async function setupWebAuthn(page: Page) {
56
const client = await page.context().newCDPSession(page)
67
// https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn/
7-
await client.send('WebAuthn.enable', { options: { enableUI: true } })
8+
await client.send('WebAuthn.enable', { enableUI: true })
89
const result = await client.send('WebAuthn.addVirtualAuthenticator', {
910
options: {
1011
protocol: 'ctap2',

0 commit comments

Comments
 (0)