隐藏图片信息中的上游标识
图片信息弹窗标题固定为图片信息,不再拼接图片名称 图片信息弹窗移除 Provider 展示行 Task 展示收口为任务标识末尾数字,避免暴露 Provider 字符串 补充图片信息脱敏展示回归测试 更新画板角色形象生成文档中的图片信息展示口径
This commit is contained in:
@@ -31,7 +31,7 @@ describe('ImageCanvasMetadataModalView', () => {
|
||||
layer={createLayer({
|
||||
model: 'gpt-image-2',
|
||||
provider: 'VectorEngine',
|
||||
taskId: 'task-123',
|
||||
taskId: 'gpt-image-2-task-123',
|
||||
objectKey: 'generated/object.png',
|
||||
generationInputs: {
|
||||
fields: [{ title: '生成提示词', value: '清爽游戏按钮' }],
|
||||
@@ -48,8 +48,9 @@ describe('ImageCanvasMetadataModalView', () => {
|
||||
/>,
|
||||
);
|
||||
|
||||
const dialog = screen.getByRole('dialog', { name: '生成主图图片信息' });
|
||||
const dialog = screen.getByRole('dialog', { name: '图片信息' });
|
||||
|
||||
expect(within(dialog).queryByText('生成主图')).toBeNull();
|
||||
expect(within(dialog).getByText('生成图片')).toBeTruthy();
|
||||
expect(within(dialog).getByText('生成提示词')).toBeTruthy();
|
||||
expect(within(dialog).getByText('清爽游戏按钮')).toBeTruthy();
|
||||
@@ -57,8 +58,10 @@ describe('ImageCanvasMetadataModalView', () => {
|
||||
expect(within(dialog).getByText('角色立绘')).toBeTruthy();
|
||||
expect(within(dialog).getByText('gpt-image-2')).toBeTruthy();
|
||||
expect(within(dialog).getByText('1024 x 768 px')).toBeTruthy();
|
||||
expect(within(dialog).getByText('VectorEngine')).toBeTruthy();
|
||||
expect(within(dialog).getByText('task-123')).toBeTruthy();
|
||||
expect(within(dialog).queryByText('Provider')).toBeNull();
|
||||
expect(within(dialog).queryByText(/VectorEngine/u)).toBeNull();
|
||||
expect(within(dialog).queryByText(/task-/u)).toBeNull();
|
||||
expect(within(dialog).getByText('123')).toBeTruthy();
|
||||
expect(within(dialog).getByText('generated/object.png')).toBeTruthy();
|
||||
});
|
||||
|
||||
@@ -80,8 +83,9 @@ describe('ImageCanvasMetadataModalView', () => {
|
||||
/>,
|
||||
);
|
||||
|
||||
const dialog = screen.getByRole('dialog', { name: '上传素材图片信息' });
|
||||
const dialog = screen.getByRole('dialog', { name: '图片信息' });
|
||||
|
||||
expect(within(dialog).queryByText('上传素材')).toBeNull();
|
||||
expect(within(dialog).getByText('上传图片')).toBeTruthy();
|
||||
expect(within(dialog).getAllByText('-').length).toBeGreaterThanOrEqual(3);
|
||||
expect(within(dialog).getByText('asset-object-1')).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user