NoRedInk/noredink-ui/35.1.0

NOTE: the latest version is 35.9.3

Nri.Test.MouseHelpers.V1

MouseHelpers provides a set of functions to simulate mouse events for testing Elm programs.

Basic helpers

click : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a click event on elements that match the given selectors.

mouseDown : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a mouse down event on elements that match the given selectors.

mouseUp : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a mouse up event on elements that match the given selectors.

mouseOver : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a mouse over event on elements that match the given selectors.

Cancelable Events

cancelableMouseDown : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a cancelable mouse down event on elements that match the given selectors.

cancelableMouseUp : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a cancelable mouse up event on elements that match the given selectors.

cancelableMouseOver : List Selector -> ProgramTest a b c -> ProgramTest a b c

Simulate a cancelable mouse over event on elements that match the given selectors.

Modules