(page, fixture, focusFirst)
| 60 | // the second option with the keyboard or pointer. |
| 61 | const option = id => `[role="option"][data-record="${id}"]`; |
| 62 | async function openPopup(page, fixture, focusFirst) { |
| 63 | await page.locator(fixture.startsWith('combobox') ? '#combo-open' : '#select-open').click(); |
| 64 | await page.getByRole('option').last().waitFor(); |
| 65 | await focusFirst(); |
| 66 | await page.locator(`${option('item-0')}[data-focused]`).waitFor(); |
| 67 | } |
| 68 | |
| 69 | // Virtualized popups render only the visible options, so they cannot check the count. |
| 70 | function navigation(fixture) { |
no test coverage detected