diff --git a/packages/dify-ui/src/toast/__tests__/index.spec.tsx b/packages/dify-ui/src/toast/__tests__/index.spec.tsx index a53a9731a3b..36fc4d14f3b 100644 --- a/packages/dify-ui/src/toast/__tests__/index.spec.tsx +++ b/packages/dify-ui/src/toast/__tests__/index.spec.tsx @@ -88,6 +88,81 @@ describe('@langgenius/dify-ui/toast', () => { ) }) + it('should reject a downward swipe and dismiss upward from the top-right viewport', async () => { + const baseUIAnimationGlobal = globalThis as BaseUIAnimationGlobal + const animationState = baseUIAnimationGlobal.BASE_UI_ANIMATIONS_DISABLED + baseUIAnimationGlobal.BASE_UI_ANIMATIONS_DISABLED = false + + try { + const screen = await render( + <> + +