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

Function option

perf/drivers.mjs:61–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59// ComboBox and Select popups start open with the first option focused, then move to
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();

Callers 5

openPopupFunction · 0.85
conditionsFunction · 0.85
navigationFunction · 0.85
virtualMatchesFunction · 0.85
drivers.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected