orce=*/true),
    'togglePopover(true) should return false when the popover does not get opened.');
  assert_false(popover.matches(':popover-open'));

  // We could also add a test for the return value of togglePopover(false),
  // but every way to prevent that from hiding the popover also throws an
  // exception, so the return value is not testable.
}, `togglePopover's return value should reflect what the end state is, not just the force parameter.`);

test(() => {
  const popover = document.createElement