diff --git a/tests/comfyui/execution-history.spec.mjs b/tests/comfyui/execution-history.spec.mjs index eab2b16e..ec579e6a 100644 --- a/tests/comfyui/execution-history.spec.mjs +++ b/tests/comfyui/execution-history.spec.mjs @@ -314,6 +314,16 @@ test('fresh registered PM variants preserve exact raw whitespace and known empty const runId = (await readExecutionRuns(execution.databasePath, id)).rows[0].run_id; const response = await execution.request.get(`/prompt_manager/library/${value.positive_prompt_id}/history`);expect(response.ok()).toBe(true); expect((await response.json()).items.map(item => item.run_id)).toContain(runId); + if (kind !== 'PromptManager') continue; + // #460: an upper-case re-queue counts toward the same prompt and joins its history + const upper = await submit(execution.request, recipeGraph({ kind, text: `${kind.toUpperCase()} E\u0301` })); + await history(execution.request, upper); + const variant = (await capture(execution, upper)).contexts[0]; + expect(variant.positive.raw).toBe(`${kind.toUpperCase()} E\u0301`); + expect(variant.positive_prompt_id, 'the case variant names the same prompt').toBe(value.positive_prompt_id); + const variantRun = (await readExecutionRuns(execution.databasePath, upper)).rows[0].run_id; + const scoped = await execution.request.get(`/prompt_manager/library/${value.positive_prompt_id}/history`); + expect((await scoped.json()).items.map(item => item.run_id)).toContain(variantRun); } });