fix puzzle generation failure stage

This commit is contained in:
kdletters
2026-05-28 15:13:20 +08:00
parent 771b0411a3
commit 2cd2b9704b
4 changed files with 56 additions and 13 deletions

View File

@@ -16653,11 +16653,11 @@ export function PlatformEntryFlowShellImpl({
onInterrupt={undefined}
backLabel="返回创作中心"
settingActionLabel={null}
retryLabel="重新生成草稿"
retryLabel="重新生成图片"
settingTitle="当前拼图信息"
settingDescription={null}
progressTitle="拼图草稿生成进度"
activeBadgeLabel="草稿生成中"
progressTitle="拼图图片生成进度"
activeBadgeLabel="图片生成中"
idleBadgeLabel="等待返回工作区"
hideBatchModule
/>

View File

@@ -4273,7 +4273,7 @@ test('running puzzle form generation creates a new puzzle draft on same template
);
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
@@ -4309,7 +4309,7 @@ test('running puzzle form generation creates a new puzzle draft on same template
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
await user.click(screen.getByRole('button', { name: '返回创作中心' }));
@@ -4389,7 +4389,7 @@ test('running puzzle draft opens generation progress from draft tab', async () =
);
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
@@ -4403,7 +4403,7 @@ test('running puzzle draft opens generation progress from draft tab', async () =
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
expect(screen.queryByText('拼图结果页')).toBeNull();
@@ -5390,7 +5390,7 @@ test('embedded puzzle form recovers when compile request times out after backend
});
expect(screen.queryByText('执行拼图操作失败。')).toBeNull();
expect(screen.queryByText('请求超时90000ms')).toBeNull();
expect(screen.queryByText('拼图草稿生成进度')).toBeNull();
expect(screen.queryByText('拼图图片生成进度')).toBeNull();
expect(startLocalPuzzleRun).toHaveBeenCalledTimes(1);
});
@@ -7416,13 +7416,13 @@ test('persisted generating puzzle draft opens generation progress after refresh'
});
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
expect(
Number(
screen
.getByRole('progressbar', { name: '拼图草稿生成进度' })
.getByRole('progressbar', { name: '拼图图片生成进度' })
.getAttribute('aria-valuenow'),
),
).toBe(0);
@@ -7481,7 +7481,7 @@ test('persisted generating puzzle draft keeps session polling on the same sessio
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
@@ -7529,7 +7529,7 @@ test('puzzle compile timeout shows failure dialog when reread session is still g
expect(within(dialog).getByRole('button', { name: '复制报错' })).toBeTruthy();
expect(
await screen.findByRole('progressbar', {
name: '拼图草稿生成进度',
name: '拼图图片生成进度',
}),
).toBeTruthy();
});