()
| 107 | |
| 108 | // The first matches for `9` replace the first records, wherever they render. |
| 109 | const virtualMatches = () => [ |
| 110 | condition('#query', {text: '9'}), |
| 111 | condition(option('item-0'), {count: 0}), |
| 112 | condition(option('item-9')), |
| 113 | condition(option('item-19')) |
| 114 | ]; |
| 115 | async 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.'); |
no test coverage detected