fix outdated test
Project CI / Frontend tests (pull_request) Successful in 1m1s
Project CI / Repository checks (pull_request) Failing after 3m7s
Project CI / Native shell tests (pull_request) Failing after 3m46s
Project CI / Backend tests (pull_request) Failing after 7m16s

This commit is contained in:
2026-07-22 16:38:37 +08:00
parent e846eb387f
commit 8b2afb9582
2 changed files with 8 additions and 6 deletions
@@ -218,7 +218,7 @@ describe('EditorAgentConversationPanelView', () => {
{
id: 'layer-1',
resourceId: 'resource-1',
title: '一二三四五六七八九十甲乙',
title: '一二三四五六七八九十甲乙丙丁戊己庚辛壬癸子丑寅卯辰巳',
src: '/generated/role.png',
x: 0,
y: 0,
@@ -284,13 +284,15 @@ describe('EditorAgentConversationPanelView', () => {
).toBeNull();
fireEvent.click(
within(attachmentDialog).getByRole('checkbox', {
name: '选择画布图片 一二三四五六七八九十',
name: '选择画布图片 一二三四五六七八九十甲乙丙丁戊己庚辛壬癸子丑寅卯',
}),
);
fireEvent.click(
within(attachmentDialog).getByRole('button', { name: '应用' }),
);
expect(screen.getByText('一二三四五六七八九十')).toBeTruthy();
expect(
screen.getByText('一二三四五六七八九十甲乙丙丁戊己庚辛壬癸子丑寅卯'),
).toBeTruthy();
fireEvent.change(screen.getByLabelText('发送给画布 Agent'), {
target: { value: '参考附件做像素风' },
@@ -308,7 +310,7 @@ describe('EditorAgentConversationPanelView', () => {
expect.objectContaining({
source: 'canvas_resource',
referenceId: 'resource-1',
label: '一二三四五六七八九十',
label: '一二三四五六七八九十甲乙丙丁戊己庚辛壬癸子丑寅卯',
}),
],
}),
@@ -551,7 +551,7 @@ describe('useEditorAgentConversation', () => {
referenceId: 'resource-1',
objectKey: 'generated-editor-assets/resource-1.png',
imageSrc: '/resource-1.png',
label: '一二三四五六七八九十甲乙',
label: '一二三四五六七八九十甲乙丙丁戊己庚辛壬癸子丑寅卯辰巳',
}),
]);
});
@@ -564,7 +564,7 @@ describe('useEditorAgentConversation', () => {
expect.objectContaining({
source: 'canvas_resource',
referenceId: 'resource-1',
label: '一二三四五六七八九十',
label: '一二三四五六七八九十甲乙丙丁戊己庚辛壬癸子丑寅卯',
}),
],
}),