>
  const invokee = document.getElementById('invokee');
  test(
    function (t) {
      assert_false(invokee.open, "invokee.open");
      assert_false(invokee.matches(":modal"), "invokee :modal");
      let fired = false;
      invokee.addEventListener('command', () => {
        fired = true;
        invokee.remove();
      });
      invokerbutton.click();
      assert_true(fired, "command event fired");
      assert_false(invokee.isConnected, "dialog no longer connected");
      assert_false(invokee.open,