diff --git a/__mocks__/platform-bible-react.tsx b/__mocks__/platform-bible-react.tsx index f4297e44..1007fc6f 100644 --- a/__mocks__/platform-bible-react.tsx +++ b/__mocks__/platform-bible-react.tsx @@ -361,6 +361,8 @@ export function PopoverAnchor({ * - An Escape keydown anywhere inside the content invokes `onEscapeKeyDown`. * - A sentinel `data-testid="popover-outside"` button invokes `onInteractOutside` on click, * simulating a pointer interaction outside the popover. + * - A sentinel `data-testid="popover-close"` button invokes `onCloseAutoFocus` on click, + * simulating Radix's focus-restoration event fired as the popover closes. * * @param props - Component props. * @param props.children - Panel content. @@ -371,6 +373,8 @@ export function PopoverAnchor({ * in `detail.originalEvent` when the sentinel outside button is clicked, matching the shape of * Radix's `PointerDownOutsideEvent`. * @param props.onOpenAutoFocus - Called once on mount with a plain `Event`. + * @param props.onCloseAutoFocus - Called with a plain `Event` when the sentinel close button is + * clicked, mirroring Radix's close-time focus-restoration event. * @param props.onClick - Click handler forwarded to the div. * @param props.onMouseDown - Mouse-down handler forwarded to the div. * @returns A `