fix(canvas): compact workspace toolbar
This commit is contained in:
@@ -356,6 +356,9 @@ test.describe('AI Design V2 workspace', () => {
|
||||
await expect(page.getByTestId('image-workspace-history-rail')).toBeVisible();
|
||||
await expect(page.getByTestId('image-workspace-works-rail')).toHaveCount(0);
|
||||
await expect(page.getByRole('heading', { name: '和 AI 一起完善创作' })).toHaveCount(0);
|
||||
await expect(page.getByText('当前设计项目的制作记录')).toHaveCount(0);
|
||||
await expect(page.getByText('实时同步')).toHaveCount(0);
|
||||
await expect(page.getByRole('button', { name: '刷新作品' })).toHaveCount(0);
|
||||
await expect(page.getByRole('heading', { name: '制作方案' })).toBeVisible();
|
||||
await expect(page.getByRole('textbox', { name: '创作提示词' })).toHaveValue(
|
||||
'把便携咖啡机呈现为城市通勤中的精密工具',
|
||||
@@ -404,8 +407,8 @@ test.describe('AI Design V2 workspace', () => {
|
||||
expect(layout!.historyTopGap).toBeLessThanOrEqual(1);
|
||||
expect(layout!.historyBottomGap).toBeLessThanOrEqual(1);
|
||||
expect(layout!.historyHorizontalGap).toBeLessThanOrEqual(1);
|
||||
expect(layout!.workspaceHeaderHeight).toBe(64);
|
||||
expect(layout!.historyHeaderHeight).toBe(64);
|
||||
expect(layout!.workspaceHeaderHeight).toBe(48);
|
||||
expect(layout!.historyHeaderHeight).toBe(48);
|
||||
expect(layout!.headerTopGap).toBeLessThanOrEqual(1);
|
||||
expect(layout!.headerBottomGap).toBeLessThanOrEqual(1);
|
||||
expect(layout!.conversationWidth).toBeGreaterThan(600);
|
||||
|
||||
Reference in New Issue
Block a user