feat: enable AI design voice input

This commit is contained in:
2026-08-18 02:30:39 +08:00
parent 13bdc0c9ba
commit 1ba5b9cc84
4 changed files with 751 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ test.describe('AI Design workspace', () => {
const firstPrompt = '为项目设计一张蓝色星空海报';
await page.getByLabel('设计需求').fill(firstPrompt);
await page.getByRole('button', { name: '发送给设计 Agent' }).click();
await page.getByLabel('设计需求').press('Enter');
await expect(page.getByTestId('image-workspace-conversation')).toContainText(firstPrompt);
await expect(page.getByText('设计 Agent', { exact: true })).toHaveCount(0);
await expect(page.getByText('你', { exact: true })).toHaveCount(0);