Summary
| Case | What it shows | User result | Expected from the tool |
|---|---|---|---|
| H1 | CSS hover, 50px gap | Fails Hoverable | hover on the tip works. Known limit: the tool does not cross the gap, so it reports no violation. |
| H2 | Script hides tip 150 ms after leaving, 50px gap | Fails Hoverable | Same known limit as H1. |
| H3 | Tip touches the trigger | Passes | Full sequence works: hover, hover the tip, Escape not needed. |
| H4 | Flyout menu on hover | Passes | After hover the menu and its menu items appear in elements with refs. |
| H5 | Tip appears 500 ms after hover | Passes | Needs [hover, wait]. A bare hover returns no tip. |
| H6a | Escape closes the tip | Dismissible | hover, then press Escape: tip is gone. |
| H6b | Escape does nothing | Fails Dismissible | hover, then press Escape: tip is still there. |
| H7 | Tip disappears after 3 s while the pointer is still on it | Fails Persistent | hover, then wait 4000 ms: tip is gone. |
| H8 | Tip ignores the pointer (pointer-events: none) | Fails Hoverable | hover on the tip ref fails. In production the model sees "Private execution failed" (until INC-180). |
| H9 | Tip without a role | Passes | Tip text is in the page text but the tip has no ref, so it cannot be hovered. Known limit. |
| F1 | Tip shown on focus, Escape closes it | Passes | focus shows the tip and focusedElement is the trigger. Escape closes it. |
| F2 | Tip shown only for keyboard-style focus (:focus-visible) | Passes | Click another button first, then focus the trigger: the tip must appear. |
| F3 | Elements that cannot take focus | n/a | focus fails with ELEMENT_NOT_FOCUSABLE. The run continues. |
| F4 | Input inside a shadow root | n/a | focus works. focusedElement is the inner input. |
How to test by hand (QA)
- Pointer: move the mouse slowly from the trigger to the tip, then jump onto the tip in one quick move. H1 and H2 lose the tip on the slow move but keep it on the jump. The tool always jumps.
- Keyboard: use Tab and Shift+Tab, and press Escape. In F2, click "Click me first" with the mouse, then press Tab: the tip appears. Click the trigger itself with the mouse: no tip.
- Browser tool: in a workflow with the browser tools, ask the agent to open this page, run
hoverorfocuson the named trigger, then report whatelements,textandfocusedElementshow. Add?debug=1to the URL to show a small panel with the focused element.
Hover cases
H1. CSS hover with a gap
User: fails Hoverable. The tip is shown by :hover on the wrapper. The 50px gap is outside the wrapper, so moving slowly toward the tip hides it.
Tool: hover on the trigger shows the tip. hover on the tip ref keeps it visible (a jump skips the gap). The tool cannot tell this is a violation.
H2. Script hides the tip 150 ms after the pointer leaves, with a gap
User: fails Hoverable. Crossing the gap takes longer than 150 ms, so the tip is gone before the pointer arrives.
Tool: same as H1. The jump lands within 150 ms and the tip stays.
H3. Control: no gap
User: passes. The tip touches the trigger.
Tool: hover on the trigger, then hover on the tip ref: still visible.
H4. Flyout menu on hover
User: passes. The menu opens on hover and stays while the pointer moves onto it.
Tool: after hover on "Products", elements lists the menu items (role menuitem) with refs. The menu itself has role menu.
H5. Tip appears 500 ms after hover
User: passes. The tip shows after a short delay and hides when the pointer leaves.
Tool: a lone hover returns a page without the tip. [hover, wait 800] returns it.
H6a. Escape closes the tip (dismissible)
User: passes Dismissible. Escape hides the tip without moving the pointer. It returns after the pointer leaves and comes back.
Tool: hover, then press Escape on any current ref: the tip is gone from text and elements.
H6b. Escape does nothing (not dismissible)
User: fails Dismissible.
Tool: hover, then press Escape: the tip is still there. This is how the agent detects the violation.
H7. Tip disappears after 3 seconds (not persistent)
User: fails Persistent. The tip hides on its own while the pointer is still on the trigger.
Tool: [hover] shows the tip. [hover, wait 4000] returns a page without it.
H8. Tip ignores the pointer (pointer-events: none)
User: fails Hoverable. The pointer passes through the tip, so it cannot be hovered.
Tool: hover on the trigger shows the tip and gives it a ref. hover on that ref fails after the action timeout (15 s locally). Until INC-180 the model sees "Private execution failed" in production.
H9. Tip without a role
User: passes as far as 1.4.13 goes (it would fail a name/role check elsewhere).
Tool: the text is in the page text, but the tip gets no ref, so the agent cannot hover it. Known limit: only roles tooltip, menu, menuitem and dialog get a ref.
Focus cases
F1. Tip shown on focus, Escape closes it
User: passes. Tab to the button and the tip shows. Escape hides it while focus stays.
Tool: focus on the trigger ref: the tip appears and focusedElement is the trigger (ref, role button, name). press Escape: the tip is gone, focusedElement unchanged.
F2. Tip shown only for keyboard-style focus (:focus-visible)
User: passes. Tab to the trigger and the tip shows. A mouse click on the trigger does not show it.
Tool: click "Click me first", then focus the trigger: the tip must appear, because focus uses focus({ focusVisible: true }). A plain element.focus() after a click would not show it.
F3. Elements that cannot take focus
User: n/a. Neither element is reachable with the keyboard.
Tool: focus on either ref fails with code ELEMENT_NOT_FOCUSABLE and the message "The element cannot receive keyboard focus. Pick a focusable element from the latest page snapshot." The run is not terminated (unless the workflow sets stopOnToolFailure).
F4. Input inside a shadow root
User: n/a. Tab reaches the input.
Tool: focus on the shadow input ref succeeds, and focusedElement is the inner input (role textbox), not the host.