From 48445430613dfa68fa23ef710b0dcac49147cece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 22:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E6=A3=80=E6=9F=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8A=A8=E7=94=BB=E6=B5=8B=E8=AF=95=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 让动画 mock 匹配仅重启提示动画的现役筛选逻辑 保留非提示动画不被重启的生产行为 --- apps/ai-game-creator-shell/tests/uiEditorPage.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/tests/uiEditorPage.test.ts b/apps/ai-game-creator-shell/tests/uiEditorPage.test.ts index c4c2c1f53..acda62a48 100644 --- a/apps/ai-game-creator-shell/tests/uiEditorPage.test.ts +++ b/apps/ai-game-creator-shell/tests/uiEditorPage.test.ts @@ -439,7 +439,11 @@ describe('UiEditorPage', () => { const cancel = vi.fn(); const play = vi.fn(); const getAnimationsSpy = vi.fn(() => [ - { cancel, play } as unknown as Animation, + { + animationName: 'ui-editor-status-attention-arrive', + cancel, + play, + } as unknown as Animation, ]); Object.defineProperty(Element.prototype, 'getAnimations', { configurable: true,