收口创作代理上传图标按钮

creation-agent composer 上传文档和参考图入口改用 PlatformIconButton

工作台测试断言上传入口接入公共图标按钮

补充 PlatformUiKit 收口文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 12:56:18 +08:00
parent 3f7748983c
commit 2bc76f0558
4 changed files with 32 additions and 22 deletions

View File

@@ -75,10 +75,17 @@ test('creation agent workspace keeps initial chat progress at zero percent', ()
onBack={() => {}}
onSubmitText={() => {}}
onPrimaryAction={() => {}}
onReferenceImageChange={() => {}}
/>,
);
const progressbar = screen.getByRole('progressbar');
const documentUploadButton = screen.getByRole('button', {
name: '上传文档',
});
const referenceUploadButton = screen.getByRole('button', {
name: '上传参考图',
});
expect(progressbar.getAttribute('aria-valuenow')).toBe('0');
expect(progressbar.getAttribute('aria-labelledby')).toBe(
@@ -90,6 +97,8 @@ test('creation agent workspace keeps initial chat progress at zero percent', ()
.getByTestId('creation-agent-message-list')
.closest('.platform-subpanel')?.className,
).toContain('rounded-[1.5rem]');
expect(documentUploadButton.className).toContain('platform-icon-button');
expect(referenceUploadButton.className).toContain('platform-icon-button');
expect(
(progressbar.firstElementChild as HTMLElement | null)?.style.width,
).toBe('0%');