From e68567a0943d252a8f90393b5e0715e7d955f124 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Tue, 20 Oct 2026 22:55:11 -0700 Subject: [PATCH] test(inspector): let the uncertain-file send check fail again Inspector send buttons are named "... to ComfyUI: ", so the anchored regex could never match and the no-send assertion always passed. --- tests/browser/prompt-inspector.spec.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/browser/prompt-inspector.spec.mjs b/tests/browser/prompt-inspector.spec.mjs index 2c202c8..9ebca0e 100644 --- a/tests/browser/prompt-inspector.spec.mjs +++ b/tests/browser/prompt-inspector.spec.mjs @@ -77,7 +77,8 @@ test('explicit empty negative is sendable while unrecorded text is never invente await expect(role(details(page),'Negative').locator('p.prompt-text')).toHaveText('No negative prompt (explicitly empty)'); await expect(details(page).getByRole('button',{name:/^Send negative prompt to ComfyUI: /})).toBeEnabled(); await select(page,'0:uncertain.png');await expect(details(page)).toContainText('Not recorded in this file.'); - await expect(details(page).getByRole('button',{name:/^Send (positive|negative) prompt to ComfyUI$/})).toHaveCount(0); + // Every inspector send is named after its prompt ("…to ComfyUI: <title>"); an untitled one ends at "ComfyUI". + await expect(details(page).getByRole('button',{name:/^Send (positive|negative) prompt to ComfyUI(: |$)/})).toHaveCount(0); }); test('inspection failures retry and a delayed previous selection cannot replace the current prompt',async({page})=>{