diff --git a/src/components/image-editor/ImageCanvasCharacterAnimationPanelView.tsx b/src/components/image-editor/ImageCanvasCharacterAnimationPanelView.tsx index a9bd8d13d..505ef46c6 100644 --- a/src/components/image-editor/ImageCanvasCharacterAnimationPanelView.tsx +++ b/src/components/image-editor/ImageCanvasCharacterAnimationPanelView.tsx @@ -259,13 +259,6 @@ export function ImageCanvasCharacterAnimationPanelView({ {isGenerating ? '生成中' : `生成${price}泥点`} - - {panel.promptText.trim() ? panel.promptText.trim() : '动画描述'} - {panel.status === 'completed' && panel.result ? ( { within(panel).getByLabelText('动画描述'), precisePrompt, ); + // 面板里原本还有一行只读的「生成文本」回显(与上面的输入区重复);它已删除,这里钉住不再渲染。 expect( - within(panel).getByLabelText(`生成文本:${precisePrompt}`), - ).toBeTruthy(); + within(panel).queryByLabelText(`生成文本:${precisePrompt}`), + ).toBeNull(); + expect(within(panel).getByLabelText('动画描述').textContent).toContain( + precisePrompt, + ); fireEvent.click( within(panel).getByRole('button', { name: '动画参数 同图尺寸 · 4秒 · 480p',