From 23809051e9a7541c6a37491dc367f4cbd8210ec8 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Mon, 19 Oct 2026 18:30:47 +0100 Subject: [PATCH] web: align smoke labels with the merged accessibility names The merged main branch names the attention dismiss and chat actions controls for their rows. Assert those prefixes instead of the old bare words so the live smoke exercises the current labels. --- web/test/ui-smoke.mjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/test/ui-smoke.mjs b/web/test/ui-smoke.mjs index c5bff20a..1f41616f 100644 --- a/web/test/ui-smoke.mjs +++ b/web/test/ui-smoke.mjs @@ -1637,7 +1637,10 @@ try { if (!row.icon) throw new Error(`row ${row.runId} has no status icon`); if (!row.label) throw new Error(`row ${row.runId} has no primary label`); if (!row.desc.includes(" ยท ")) throw new Error(`row ${row.runId} description is wrong: ${row.desc}`); - if (row.dismissName !== "Dismiss") { + // The dismiss control is named for the row it clears (L7 M6), e.g. + // `Dismiss Web: live decision confirm (R11)`; the run id appears only for a + // repeated label, so assert the shared prefix rather than the old bare word. + if (!row.dismissName.startsWith("Dismiss ")) { throw new Error(`row ${row.runId}'s trailing control is not named Dismiss: ${row.dismissName}`); } const rank = kindRanks[row.kind]; @@ -3515,7 +3518,9 @@ try { if (!operatorRow.chips.includes("Operator")) { throw new Error(`chat kind chip: ${operatorRow.chips.join(", ")}`); } - if (!operatorRow.menu || operatorRow.menuLabel !== "Chat actions") { + // M6 names the control for its row: `Chat actions for {title}`, with the + // session id only when titles repeat. Assert the shared prefix and title. + if (!operatorRow.menu || !operatorRow.menuLabel.startsWith("Chat actions for ")) { throw new Error(`the open chat row's Chat actions menu: ${JSON.stringify(operatorRow)}`); } }