diff --git a/packages/dify-ui/src/toast/__tests__/index.spec.tsx b/packages/dify-ui/src/toast/__tests__/index.spec.tsx index 1e302618c5..e02f6828ac 100644 --- a/packages/dify-ui/src/toast/__tests__/index.spec.tsx +++ b/packages/dify-ui/src/toast/__tests__/index.spec.tsx @@ -125,19 +125,9 @@ describe('@langgenius/dify-ui/toast', () => { expect(onClose).toHaveBeenCalledTimes(1) }) - it('should respect custom timeout values including zero', async () => { + it('should keep zero-timeout toasts persistent', async () => { const screen = await render() - toast('Custom timeout', { - timeout: 1000, - }) - await expect.element(screen.getByText('Custom timeout')).toBeInTheDocument() - - await vi.advanceTimersByTimeAsync(1000) - await vi.waitFor(() => { - expect(document.body).not.toHaveTextContent('Custom timeout') - }) - toast('Persistent', { timeout: 0, }) diff --git a/web/Dockerfile b/web/Dockerfile index 8bf016c1ba..868a26b1ca 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -41,6 +41,7 @@ COPY . . WORKDIR /app/web ENV NODE_OPTIONS="--max-old-space-size=4096" +ENV pnpm_config_verify_deps_before_run=false RUN pnpm build && pnpm build:vinext