blob: 21b9126af1e055cbd65709433d4fa494d61aff02 [file] [log] [blame]
(async function(testRunner) {
const {page, session, dp} = await testRunner.startBlank(
'Check that the WebAuthn command setAutomaticPresenceSimulation validates parameters');
// Try without enabling the WebAuthn environment.
testRunner.log(await dp.WebAuthn.setAutomaticPresenceSimulation(
{authenticatorId: 'nonsense', enabled: false}));
// Try for an authenticator that does not exist.
await dp.WebAuthn.enable();
testRunner.log(await dp.WebAuthn.setAutomaticPresenceSimulation(
{authenticatorId: 'nonsense', enabled: false}));
testRunner.completeTest();
})