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:
@@ -2204,8 +2204,10 @@ try {
|
|||||||
await shot("50-chat-no-match.png");
|
await shot("50-chat-no-match.png");
|
||||||
await page.clickText(".chat-rows .empty button", "Clear search");
|
await page.clickText(".chat-rows .empty button", "Clear search");
|
||||||
await page.waitForSelector("#chatRows .chat-row", { timeout: 10000 });
|
await page.waitForSelector("#chatRows .chat-row", { timeout: 10000 });
|
||||||
const cleared = await page.evaluate(`document.querySelector("#chatSearch")?.value ?? null`);
|
const clearedQuery = await page.evaluate(`document.querySelector("#chatSearch")?.value ?? null`);
|
||||||
if (cleared !== "") throw new Error(`Clear search left the query: ${JSON.stringify(cleared)}`);
|
if (clearedQuery !== "") {
|
||||||
|
throw new Error(`Clear search left the query: ${JSON.stringify(clearedQuery)}`);
|
||||||
|
}
|
||||||
|
|
||||||
const expectedSession = "ses_eae413f50ffeLQDExlg8cYnscN";
|
const expectedSession = "ses_eae413f50ffeLQDExlg8cYnscN";
|
||||||
const openedId = chatList.rows[0].id;
|
const openedId = chatList.rows[0].id;
|
||||||
|
|||||||
Reference in New Issue
Block a user