selectMultipleOptions function infrastructure ✓ 81.3%

Last updated: 2026-03-04T23:21:38.386Z

Metrics

LOC: 107 Complexity: 17 Params: 4 Coverage: 81.3% (26/32 lines, 0x executed)

Signature

selectMultipleOptions( wrapper: HTMLElement, value: string, listboxId: string | null = null, ): : Promise<boolean>

Summary

Selects multiple options from an open ant-select-multiple dropdown. Strategy: 1. If value contains comma-separated strings, try to match each one. 2. Otherwise, pick 1–3 random non-selected options from the dropdown. 3. Close the dropdown by pressing Escape after all selections. listboxId — the value of aria-controls on the combobox input. Used to scope ALL dropdown queries to THIS wrapper's portal so concurrent fills of multiple