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)}`); } }