Skip to content

Commit

Permalink
[FedCM] Update wpt test to always show account chooser
Browse files Browse the repository at this point in the history
With mediation optional, some tests may not show the account chooser
which might affect certain functions in the tests.

Bug: None
Change-Id: Iaf53657f8b5a43c41157c721774ef828a1b7987f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5905460
Commit-Queue: Yi Gu <yigu@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1363235}
  • Loading branch information
yi-gu authored and chromium-wpt-export-bot committed Oct 2, 2024
1 parent 9cfac91 commit 1039c1a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="/storage-access-api/helpers.js"></script>

<script type="module">
import {request_options_with_mediation_optional,
import {request_options_with_mediation_required,
fedcm_test,
select_manifest,
fedcm_get_and_select_first_account} from './support/fedcm-helper.sub.js';
Expand All @@ -19,7 +19,7 @@

fedcm_test(async t => {
await MaybeSetStorageAccess("*", "*", "blocked");
let test_options = request_options_with_mediation_optional("manifest_with_auto_selected_flag.json");
let test_options = request_options_with_mediation_required();
await select_manifest(t, test_options);

await fedcm_get_and_select_first_account(t, test_options);
Expand All @@ -44,7 +44,7 @@

fedcm_test(async t => {
await MaybeSetStorageAccess("*", "*", "blocked");
let test_options = request_options_with_mediation_optional("manifest_with_auto_selected_flag.json");
let test_options = request_options_with_mediation_required();
await select_manifest(t, test_options);

await fedcm_get_and_select_first_account(t, test_options);
Expand All @@ -68,7 +68,7 @@

fedcm_test(async t => {
await MaybeSetStorageAccess("*", "*", "blocked");
let test_options = request_options_with_mediation_optional("manifest_with_auto_selected_flag.json");
let test_options = request_options_with_mediation_required();
await select_manifest(t, test_options);

await fedcm_get_and_select_first_account(t, test_options);
Expand Down

0 comments on commit 1039c1a

Please sign in to comment.