[WebAuthN] Use a real nonce for CTAPHID_INIT
[WebKit-https.git] / LayoutTests / http / wpt / webauthn / ctap-hid-success.https.html
index 179c069..db02d54 100644 (file)
             assert_not_equals(credential, null);
         });
     }, "CTAP HID with continue after wrong channel id in a mock hid authenticator.");
+
+    promise_test(function(t) {
+        if (window.testRunner)
+            testRunner.setWebAuthenticationMockConfiguration({ hid: { stage: "info", subStage: "init", error: "wrong-nonce", payloadBase64: testCreationMessageBase64, continueAfterErrorData: true } });
+        return navigator.credentials.create(defaultOptions).then(credential => {
+            assert_not_equals(credential, undefined);
+            assert_not_equals(credential, null);
+        });
+    }, "CTAP HID with continue after wrong nonce error in a mock hid authenticator.");
 </script>