MCPcopy Create free account
hub / github.com/adobe/react-spectrum / press

Function press

perf/drivers.mjs:25–25  ·  view source on GitHub ↗
(key, target, conditions)

Source from the content-addressed store, hash-verified

23const condition = (selector, rest = {}) => ({selector, ...rest});
24const click = (target, conditions) => ({event: 'pointerdown', target, conditions});
25const press = (key, target, conditions) => ({event: 'keydown', key, target, conditions});
26// A browser-generated wheel scroll of fixed distance and speed. The long, steady scroll
27// gives each trial hundreds of frame intervals; completion itself is not the score.
28const scrollDistance = 4000;

Callers 5

Card.tsxFile · 0.85
navigationFunction · 0.85
chooseOptionFunction · 0.85
dndInputFunction · 0.85
drivers.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected