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

Function virtualMatches

perf/drivers.mjs:109–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108// The first matches for `9` replace the first records, wherever they render.
109const virtualMatches = () => [
110 condition('#query', {text: '9'}),
111 condition(option('item-0'), {count: 0}),
112 condition(option('item-9')),
113 condition(option('item-19'))
114];
115async function verifyVirtualized({page, size}) {
116 if ((await page.locator('[role="option"]').count()) >= size) {
117 throw new Error('Expected a virtualized popup, not every option in the DOM.');

Callers 1

drivers.mjsFile · 0.85

Calls 2

conditionFunction · 0.85
optionFunction · 0.85

Tested by

no test coverage detected