收口创作代理上传图标按钮
creation-agent composer 上传文档和参考图入口改用 PlatformIconButton 工作台测试断言上传入口接入公共图标按钮 补充 PlatformUiKit 收口文档和 Hermes 决策记录
This commit is contained in:
@@ -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%');
|
||||
|
||||
Reference in New Issue
Block a user