MCPcopy
hub / github.com/vitest-dev/vitest / dragAndDrop

Function dragAndDrop

packages/browser/src/client/tester/context.ts:98–102  ·  view source on GitHub ↗
(source, target, options)

Source from the content-addressed store, hash-verified

96 return convertToLocator(element).fill(text, options)
97 },
98 dragAndDrop(source, target, options) {
99 const sourceLocator = convertToLocator(source)
100 const targetLocator = convertToLocator(target)
101 return sourceLocator.dropTo(targetLocator, options)
102 },
103
104 // testing-library user-event
105 type(element, text, options) {

Callers

nothing calls this directly

Calls 2

convertToLocatorFunction · 0.85
dropToMethod · 0.65

Tested by

no test coverage detected