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'.
This commit is contained in:
2026-10-19 05:42:12 +01:00
parent 96e48e33e2
commit f48e53d5c8
+4 -2
View File
@@ -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;