mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
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:
parent
116efee3f7
commit
529ac12ba5
1 changed files with 0 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue