fedcm-no-domainhint-matches-account.https.html (1024B)
1 <!DOCTYPE html> 2 <title>Federated Credential Management API no domain hint matches an account.</title> 3 <link rel="help" href="https://fedidcg.github.io/FedCM"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testdriver.js"></script> 7 <script src="/resources/testdriver-vendor.js"></script> 8 <body> 9 10 <script type="module"> 11 import { 12 fedcm_test, 13 request_options_with_domain_hint, 14 fedcm_get_dialog_type_promise, 15 fedcm_expect_dialog, 16 } from './support/fedcm-helper.sub.js'; 17 18 fedcm_test(async t => { 19 let options = request_options_with_domain_hint('manifest.py', 20 'nomatch'); 21 const cred = navigator.credentials.get(options); 22 // We expect a mismatch dialog. 23 const type = await fedcm_expect_dialog(cred, fedcm_get_dialog_type_promise(t)); 24 assert_equals(type, 'ConfirmIdpLogin'); 25 window.test_driver.cancel_fedcm_dialog(); 26 27 return promise_rejects_dom(t, "NetworkError", cred); 28 }, "No domain hint matches an account."); 29 </script>