lid should not toggle the popover');
}, 'Button type=invalid in form should trigger form submit and not toggle popover');

test((t) => {
  let formSubmit = false;
  function onSubmit(e) {
    e.preventDefault();
    formSubmit = true;
  }
  form.addEventListener('submit', onSubmit);
  t.add_cleanup(() => {
    mypopover.hidePopover();
    form.removeEventListener('submit', onSubmit);
  });
  document.getElementById('missing-in-form').click();
  assert_true(formSubmit, 'missing type should trigger form submi