补齐检查提示动画测试名称
让动画 mock 匹配仅重启提示动画的现役筛选逻辑 保留非提示动画不被重启的生产行为
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user