feat(manager): help tips open after 1.5 s of hover, at once on click

Owner 2026-11-23 (plan 6F.1a): InfoTip waits INFOTIP_HOVER_MS (1500 ms) with the pointer on the i
before opening (leaving earlier cancels); a click or tap still opens it at once and keeps it open.
ui e2e checks the delay, the cancel and the click, and now runs without any backend (a Docker stack
left on :8000 in Greek made the i18n sample fail).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 06:34:55 +02:00
co-authored by Claude Opus 5.5
parent 33a5125abc
commit 99145e83da
3 changed files with 41 additions and 10 deletions
+16 -2
View File
@@ -18,6 +18,8 @@ const log = openSync(path.join(OUT, `vite-${PORT}.log`), 'w')
const vite = spawn('npx', ['vite', '--port', String(PORT), '--strictPort'], {
cwd: path.join(CS, 'manager_dashboard'), shell: process.platform === 'win32', detached: process.platform !== 'win32',
stdio: ['ignore', log, log],
// no backend on purpose: a stack left running on :8000 (Docker, another venue's language) must not leak in
env: { ...process.env, XENIA_BACKEND: 'http://127.0.0.1:9' },
})
const browser = await chromium.launch(BROWSER_CHANNEL ? { channel: BROWSER_CHANNEL } : {})
let r = reporter('ui: @xenia/ui components (gallery)')
@@ -95,10 +97,22 @@ try {
await stepper.getByRole('button', { name: 'More' }).click()
r.check('stepper: + is disabled at the last step', (await stepper.textContent()).includes('60s') && await stepper.getByRole('button', { name: 'More' }).isDisabled())
// InfoTip
// InfoTip (6F.1a): 1.5 s on hover, at once on click
const tip = p.getByRole('button', { name: 'More info' }).first()
await tip.hover()
await sleep(700)
r.check('infotip: hovering 0.7 s: still closed', !(await p.getByRole('tooltip').isVisible()))
await p.mouse.move(5, 300)
await sleep(1200)
r.check('infotip: leaving before 1.5 s cancels it', !(await p.getByRole('tooltip').isVisible()))
await tip.hover()
await sleep(1800)
r.check('infotip: hovering 1.5 s opens it', await p.getByRole('tooltip').isVisible())
await p.mouse.move(5, 300)
await sleep(400)
r.check('infotip: leaving closes a hover-opened tip', !(await p.getByRole('tooltip').isVisible()))
await tip.click()
r.check('infotip: opens', await p.getByRole('tooltip').isVisible())
r.check('infotip: a click opens it at once', await p.getByRole('tooltip').isVisible())
await p.keyboard.press('Escape')
r.check('infotip: Escape closes, focus back', !(await p.getByRole('tooltip').isVisible()) && (await active()) === 'More info')
await tip.click(); await p.mouse.click(5, 300)