From bcb6eb484f84d9eb7f2f8a7c229ef56ccb0746ec Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 18 Apr 2026 00:12:18 +0800 Subject: [PATCH] tweaks --- packages/dify-ui/src/toast/__tests__/index.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dify-ui/src/toast/__tests__/index.spec.tsx b/packages/dify-ui/src/toast/__tests__/index.spec.tsx index a1191dff86..251b733360 100644 --- a/packages/dify-ui/src/toast/__tests__/index.spec.tsx +++ b/packages/dify-ui/src/toast/__tests__/index.spec.tsx @@ -121,7 +121,7 @@ describe('base/ui/toast', () => { await vi.advanceTimersByTimeAsync(4999) expect(document.body).toHaveTextContent('Default timeout') - await vi.advanceTimersByTimeAsync(1) + await vi.advanceTimersByTimeAsync(10) await vi.waitFor(() => { expect(document.body).not.toHaveTextContent('Default timeout') }) @@ -136,7 +136,7 @@ describe('base/ui/toast', () => { await vi.advanceTimersByTimeAsync(2999) expect(document.body).toHaveTextContent('Configured timeout') - await vi.advanceTimersByTimeAsync(1) + await vi.advanceTimersByTimeAsync(10) await vi.waitFor(() => { expect(document.body).not.toHaveTextContent('Configured timeout') })