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

Function startReorder

perf/drivers.mjs:147–152  ·  view source on GitHub ↗
({page})

Source from the content-addressed store, hash-verified

145 selector
146 );
147async function startReorder({page}) {
148 await page.locator('[data-record="item-0"] [slot="drag"]').focus();
149 await page.keyboard.press('Enter');
150 await page.locator(insertBetween(0, 1)).waitFor({state: 'attached'});
151 await waitForFocus(page, insertBetween(0, 1));
152}
153// Drag state is global, so it survives remounting the fixture for the next trial.
154async function cancelReorder({page}) {
155 await page.keyboard.press('Escape');

Callers 1

drivers.mjsFile · 0.85

Calls 3

insertBetweenFunction · 0.85
waitForFocusFunction · 0.85
focusMethod · 0.80

Tested by

no test coverage detected