fix(canvas): soften design conversation

This commit is contained in:
inman
2026-09-07 17:24:15 +08:00
parent 6a05992e18
commit bb8a19eecf
6 changed files with 90 additions and 65 deletions

View File

@@ -356,6 +356,9 @@ test.describe('AI Design V2 workspace', () => {
await page.getByTestId('ai-module-option-painting').click();
await expect(page.getByTestId('image-workspace')).toBeVisible();
await expect(page.getByTestId('image-workspace-conversation')).toBeVisible();
await expect(page.getByTestId('image-workspace-conversation')).toHaveClass(/bg-background/);
await expect(page.getByTestId('design-message-composer')).toHaveClass(/max-w-\[50rem\]/);
await expect(page.getByTestId('design-message-composer-surface')).toHaveClass(/chat-composer-surface/);
await expect(page.getByTestId('sidebar-image-workspace')).toBeVisible();
await expect(page.getByTestId('image-workspace-history-rail')).toBeVisible();
await expect(page.getByTestId('image-workspace-works-rail')).toHaveCount(0);
@@ -365,6 +368,7 @@ test.describe('AI Design V2 workspace', () => {
await expect(page.getByText('实时同步')).toHaveCount(0);
await expect(page.getByRole('button', { name: '刷新作品' })).toHaveCount(0);
await expect(page.getByRole('heading', { name: '制作方案' })).toBeVisible();
await expect(page.getByTestId('youth-creation-card')).not.toHaveClass(/border|shadow-sm/);
await expect(page.getByRole('textbox', { name: '创作提示词' })).toHaveValue(
'把便携咖啡机呈现为城市通勤中的精密工具',
);