Interface EventHandlers<T>

Defines a set of event handlers that can be supplied to various methods that simulate mouse activity. Using these you can inject tests into various parts of the lifecycle of a given operation.

interface EventHandlers<T> {
    after?: ((payload?: T) => any);
    before?: (() => any);
    beforeMouseMove?: (() => any);
    beforeMouseUp?: (() => any);
}

Type Parameters

  • T = any

Properties

after?: ((payload?: T) => any)

Called after the activity has been completed.

before?: (() => any)

Called before any activity occurs.

beforeMouseMove?: (() => any)

Called after a mousedown event has been posted but before the mouse has moved.

beforeMouseUp?: (() => any)

Called after the mouse has moved but before the mouseup event has been posted.

Version :