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

Function ordered

perf/drivers.mjs:42–43  ·  view source on GitHub ↗
(selector, values)

Source from the content-addressed store, hash-verified

40const records = size => Array.from({length: size}, (_, i) => `item-${i}`);
41const recordLabel = id => `Record ${id.slice('item-'.length)}`;
42const ordered = (selector, values) =>
43 condition(selector, {orderedValues: {attribute: 'data-record', values}});
44
45async function visibleRows(page, selector) {
46 return page.locator(`${selector} [data-record]`).evaluateAll(nodes =>

Callers 4

dataRowsFunction · 0.85
collectionRowsFunction · 0.85
treeRowsFunction · 0.85
drivers.mjsFile · 0.85

Calls 1

conditionFunction · 0.85

Tested by

no test coverage detected