Give the voice test's stub row a classList.contains

focusDataLayerRow now asks whether the finder hides the row.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-14 16:27:54 -08:00
1 parent 00794de146
commit 4c4f24355f
1 file changed
+5 -1
+5 -1
View File
@@ -1954,7 +1954,11 @@ test('showing a layer opens the panel that holds its row: Directions lives in Ut
const focused = []; const focused = [];
const rowIn = (panelId) => ({ const rowIn = (panelId) => ({
dataset: { layerName: panelId === 'utilities-panel' ? 'Directions' : 'Live Flights' }, dataset: { layerName: panelId === 'utilities-panel' ? 'Directions' : 'Live Flights' },
classList: { add: (name) => focused.push(name), remove() {} }, classList: {
add: (name) => focused.push(name),
remove() {},
contains: () => false,
},
scrollIntoView() {}, scrollIntoView() {},
closest: (selector) => (selector === '[data-panel-id]' ? { id: panelId } : null), closest: (selector) => (selector === '[data-panel-id]' ? { id: panelId } : null),
}); });