test(web): assert hover-card dismissal directly

This commit is contained in:
creatixchu
2026-07-31 16:46:29 +08:00
parent 5fc242e972
commit 0f3c821b38

View File

@@ -445,7 +445,7 @@ describe('web e2e: workspace management (create / rename / flat view / hover aff
expect(await page.evaluate(() => navigator.clipboard.readText())).toBe(rowTitle)
// Leaving anchor and card together closes it after the grace.
await page.getByRole('button', { name: 'Settings' }).hover()
await expect.poll(() => page.getByText('Idle', { exact: true }).count(), { timeout: 5_000 }).toBe(0)
await expect.poll(() => card.count(), { timeout: 5_000 }).toBe(0)
expect(tripwire.pageErrors).toEqual([])
}, 60_000)