mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 21:28:25 +08:00
tweaks
This commit is contained in:
parent
4dae959c28
commit
bcb6eb484f
@ -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')
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user