function expectOkPreventDefault() {
  expectOk();
  mockOkHandler.$does((e) => {
    e.preventDefault();
  });
}
Sets up the mock event handler to expect an OK event and to call
preventDefault when handling it.