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.
This commit is contained in:
2026-10-19 18:30:47 +01:00
parent 45f75f5baf
commit 23809051e9
+7 -2
View File
@@ -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)}`);
}
}