From f48e53d5c8775b0f72c20700f9f4c91aa4f0684e Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Mon, 19 Oct 2026 05:42:12 +0100 Subject: [PATCH] web: resolve merge collision in ui-smoke (rename chat query local) Both web-attention and web-chat declared 'const cleared' in the top-level module scope of test/ui-smoke.mjs; the auto-merge kept both, which is a SyntaxError. Rename the chat one to 'clearedQuery'. --- web/test/ui-smoke.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/test/ui-smoke.mjs b/web/test/ui-smoke.mjs index 987f699c..e6a33b7c 100644 --- a/web/test/ui-smoke.mjs +++ b/web/test/ui-smoke.mjs @@ -2204,8 +2204,10 @@ try { await shot("50-chat-no-match.png"); await page.clickText(".chat-rows .empty button", "Clear search"); await page.waitForSelector("#chatRows .chat-row", { timeout: 10000 }); - const cleared = await page.evaluate(`document.querySelector("#chatSearch")?.value ?? null`); - if (cleared !== "") throw new Error(`Clear search left the query: ${JSON.stringify(cleared)}`); + const clearedQuery = await page.evaluate(`document.querySelector("#chatSearch")?.value ?? null`); + if (clearedQuery !== "") { + throw new Error(`Clear search left the query: ${JSON.stringify(clearedQuery)}`); + } const expectedSession = "ses_eae413f50ffeLQDExlg8cYnscN"; const openedId = chatList.rows[0].id;