<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/webauthn/helpers.js"></script>
<script>
'use strict';

const textEncoder = new TextEncoder();
let authenticatorArgs = {
  protocol: 'ctap2_1',
  transport: 'internal',
  hasResidentKey: true,
  hasUserVerification: true,
  isUserVerified: true,
};

window.onload = async function() {
  test_driver.set_test_context(parent);
  const authenticator = await window.test_driver.add_virtual_authenti