test(ui): drop the helper docblock

The repo does not take explanatory comments. The reason the helper queries by
role lives in the commit that introduced it and in the PR description.
This commit is contained in:
Yuneng Jiang 2026-09-01 13:01:46 -07:00
parent 116efee3f7
commit 529ac12ba5
No known key found for this signature in database

View file

@ -44,15 +44,6 @@ const pointerBlocked = (element: HTMLElement): boolean => {
return false;
};
/**
* Opens a Base UI popup and picks an entry by its accessible name.
*
* Querying the entry by text or by a title attribute matches the moment the node exists, which is
* one render before the popup finishes entering. Until then the positioner still carries
* `pointer-events: none` and user-event refuses to click, so that shape is a race a fast machine
* loses. The role query only matches once the popup is open to the accessibility tree, which is
* what makes this wait correct rather than lucky.
*/
export const chooseSelectOption = async (
user: Pick<ReturnType<typeof userEvent.setup>, "click">,
trigger: HTMLElement,