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

Function openPopup

perf/drivers.mjs:62–67  ·  view source on GitHub ↗
(page, fixture, focusFirst)

Source from the content-addressed store, hash-verified

60// the second option with the keyboard or pointer.
61const option = id => `[role="option"][data-record="${id}"]`;
62async 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.
70function navigation(fixture) {

Callers 2

navigationFunction · 0.85
chooseOptionFunction · 0.85

Calls 2

focusFirstFunction · 0.85
optionFunction · 0.85

Tested by

no test coverage detected