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

Function treeRows

perf/drivers.mjs:330–337  ·  view source on GitHub ↗
(size, expanded, focused)

Source from the content-addressed store, hash-verified

328 : roots;
329};
330const treeRows = (size, expanded, focused) => [
331 ordered('.project-tree [data-record]', treeRecords(size, expanded)),
332 condition('.project-tree [data-record="project-0"]', {
333 attribute: 'aria-expanded',
334 value: String(expanded)
335 }),
336 condition(`.project-tree [data-record="${focused}"]`, {focused: true})
337];
338async function expandFirstProject({page}) {
339 await page.keyboard.press('ArrowRight');
340 await page.locator('.project-tree [data-record="file-0-0"]').waitFor();

Callers 1

drivers.mjsFile · 0.85

Calls 4

orderedFunction · 0.85
treeRecordsFunction · 0.85
conditionFunction · 0.85
StringFunction · 0.85

Tested by

no test coverage detected