How to use the @delon/testing.dispatchMouseEvent function in @delon/testing

To help you get started, we’ve selected a few @delon/testing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-alain / delon / packages / abc / date-picker / range.spec.ts View on Github external
function openPicker(): HTMLInputElement {
    const el = dl.query(By.css('nz-picker .ant-calendar-picker')).nativeElement as HTMLInputElement;
    dispatchMouseEvent(el, 'click');
    timeEnd();
    return el;
  }