We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WebAuthn.enable
1 parent 2eb613f commit 9938f6eCopy full SHA for 9938f6e
tests/e2e/passkey.test.ts
@@ -1,10 +1,11 @@
1
import { faker } from '@faker-js/faker'
2
+import { type Page } from '@playwright/test'
3
import { expect, test } from '#tests/playwright-utils.ts'
4
-async function setupWebAuthn(page: any) {
5
+async function setupWebAuthn(page: Page) {
6
const client = await page.context().newCDPSession(page)
7
// https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn/
- await client.send('WebAuthn.enable', { options: { enableUI: true } })
8
+ await client.send('WebAuthn.enable', { enableUI: true })
9
const result = await client.send('WebAuthn.addVirtualAuthenticator', {
10
options: {
11
protocol: 'ctap2',
0 commit comments