fix(client): complete hover-card coverage and steering golden

This commit is contained in:
yudshj committed 2026-10-21 16:20:02 +08:00
1 parent 50a9e31c2c
commit f3bb36263d
3 files changed
+4 -1

No files matched your search

@@ -913,6 +913,8 @@ it('scrolls an open callout with the focused anchor keyboard controls', () => {
const scroll = document.querySelector<HTMLElement>('[data-hover-card-scroll]') as HTMLElement
Object.defineProperty(scroll, 'clientHeight', { configurable: true, value: 160 })
Object.defineProperty(scroll, 'scrollHeight', { configurable: true, value: 640 })
expect(fireEvent.keyDown(scroll, { key: 'PageDown' })).toBe(true)
expect(scroll.scrollTop).toBe(0)
for (const [key, top] of [['ArrowDown', 20], ['ArrowUp', 0], ['PageDown', 160], ['PageUp', 0], ['End', 640], ['Home', 0]] as const) {
expect(fireEvent.keyDown(anchor, { key })).toBe(false)
expect(scroll.scrollTop).toBe(top)
@@ -409,6 +409,7 @@
height: 16px;
border: 1px solid currentColor;
border-radius: 50%;
corner-shape: round;
}
.descriptionPreview {
+1 -1
View File
@@ -16,9 +16,9 @@
- button "Copy"
- region "Ready to continue?":
- text: Checkpoint
- heading "Ready to continue?" [level=2]
- button "Collapse the question card" [expanded]
- button "Dismiss all questions"
- heading "Ready to continue?" [level=2]
- radiogroup:
- radio "Yes": 1 Yes
- radio "No": 2 No