Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > detachAndReattachConnection

BrowserUITestSupport.detachAndReattachConnection() method#

Detach and reattach a connection from the given Endpoint by synthesizing a mousedown event, dragging to a distant point, dragging it back to the endpoint, and releasing the mouse.

Signature:

detachAndReattachConnection(e: Endpoint, events?: EventHandlers): void;

Parameters#

ParameterTypeDescription
eEndpointEndpoint to detach and reattach connection from/to
eventsEventHandlersMap of event handlers for injecting tests into the lifecycle.

Returns:

void