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?) => any);
    before?: (() => any);
    beforeMouseMove?: (() => any);
    beforeMouseUp?: (() => any);
}

Type Parameters

  • T = any

Properties

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

Called after the activity has been completed.

Type declaration

    • (payload?): any
    • Parameters

      • Optional payload: T

      Returns any

before?: (() => any)

Called before any activity occurs.

Type declaration

    • (): any
    • Returns any

beforeMouseMove?: (() => any)

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

Type declaration

    • (): any
    • Returns any

beforeMouseUp?: (() => any)

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

Type declaration

    • (): any
    • Returns any