This commit is contained in:
Stephen Zhou
2026-04-18 00:26:37 +08:00
parent bcb6eb484f
commit 1ccb763e24

View File

@@ -150,7 +150,7 @@ describe('base/ui/toast', () => {
})
await expect.element(screen.getByText('Custom timeout')).toBeInTheDocument()
await vi.advanceTimersByTimeAsync(1000)
await vi.advanceTimersByTimeAsync(1010)
await vi.waitFor(() => {
expect(document.body).not.toHaveTextContent('Custom timeout')
})