blob: f451c196c73cdaf51c6c2de5bd6b6ae00d80a9c5 [file] [log] [blame]
(async function(testRunner) {
const {page, session, dp} =
await testRunner.startBlank(
"Check that the WebAuthn removeVirtualAuthenticator command works");
const disabledError = await dp.WebAuthn.removeVirtualAuthenticator({
authenticatorId: "id",
});
testRunner.log(disabledError);
await dp.WebAuthn.enable();
const authenticatorId = (await dp.WebAuthn.addVirtualAuthenticator({
options: {
protocol: "ctap2",
transport: "usb",
hasResidentKey: false,
hasUserVerification: false,
},
})).result.authenticatorId;
const response = await dp.WebAuthn.removeVirtualAuthenticator({
authenticatorId,
});
testRunner.log(response);
const notFoundError = await dp.WebAuthn.removeVirtualAuthenticator({
authenticatorId: "id",
});
testRunner.log(notFoundError);
testRunner.completeTest();
})