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

Function conditions

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

Source from the content-addressed store, hash-verified

71 let combobox = fixture.startsWith('combobox');
72 let virtualized = fixture.endsWith('-virtual');
73 let conditions = size => [
74 ...(virtualized ? [] : [condition('[role="option"]', {count: size})]),
75 condition('[role="option"][data-focused]', {
76 count: 1,
77 attribute: 'data-record',
78 value: 'item-1'
79 }),
80 combobox
81 ? condition('#combo-input', {focused: true, activeDescendant: option('item-1')})
82 : condition(option('item-1'), {focused: true})
83 ];
84 return {
85 keyboard: {
86 prepare: ({page}) => openPopup(page, fixture, () => page.keyboard.press('Home')),

Callers 1

navigationFunction · 0.85

Calls 2

conditionFunction · 0.85
optionFunction · 0.85

Tested by

no test coverage detected