feat: 完善敲木鱼结果页元信息补录
This commit is contained in:
@@ -407,7 +407,7 @@ describe('miniGameDraftGenerationProgress', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test('wooden fish draft generation exposes hit object, background and sound pipeline', () => {
|
||||
test('wooden fish draft generation exposes hit object, background and back button pipeline', () => {
|
||||
const state = createMiniGameDraftGenerationState('wooden-fish');
|
||||
|
||||
const progress = buildMiniGameDraftGenerationProgress(
|
||||
@@ -419,12 +419,40 @@ describe('miniGameDraftGenerationProgress', () => {
|
||||
'wooden-fish-draft',
|
||||
'wooden-fish-hit-object',
|
||||
'wooden-fish-background',
|
||||
'wooden-fish-hit-sound',
|
||||
'wooden-fish-back-button',
|
||||
'wooden-fish-write-draft',
|
||||
]);
|
||||
expect(progress?.phaseId).toBe('wooden-fish-hit-object');
|
||||
expect(progress?.phaseLabel).toBe('生成敲击物图案');
|
||||
expect(progress?.estimatedRemainingMs).toBe(272_000);
|
||||
expect(progress?.estimatedRemainingMs).toBe(530_000);
|
||||
});
|
||||
|
||||
test('wooden fish draft generation follows hit object, background, back button and writeback', () => {
|
||||
const state = createMiniGameDraftGenerationState('wooden-fish');
|
||||
|
||||
const hitObjectProgress = buildMiniGameDraftGenerationProgress(
|
||||
state,
|
||||
state.startedAtMs + 20_000,
|
||||
);
|
||||
const backgroundProgress = buildMiniGameDraftGenerationProgress(
|
||||
state,
|
||||
state.startedAtMs + 200_000,
|
||||
);
|
||||
const backButtonProgress = buildMiniGameDraftGenerationProgress(
|
||||
state,
|
||||
state.startedAtMs + 390_000,
|
||||
);
|
||||
const writeBackProgress = buildMiniGameDraftGenerationProgress(
|
||||
state,
|
||||
state.startedAtMs + 575_000,
|
||||
);
|
||||
|
||||
expect(hitObjectProgress?.phaseId).toBe('wooden-fish-hit-object');
|
||||
expect(backgroundProgress?.phaseId).toBe('wooden-fish-background');
|
||||
expect(backButtonProgress?.phaseId).toBe('wooden-fish-back-button');
|
||||
expect(writeBackProgress?.phaseId).toBe('wooden-fish-write-draft');
|
||||
expect(writeBackProgress?.estimatedRemainingMs).toBe(0);
|
||||
expect(writeBackProgress?.steps[4]?.status).toBe('completed');
|
||||
});
|
||||
|
||||
test('wooden fish generation anchors expose hit object, sound and words', () => {
|
||||
|
||||
Reference in New Issue
Block a user