Skip to content

Commit afbc792

Browse files
committed
test(ui): expect last-activity suffix in composer summary label
Merge weave: #129520 appends the accessible last-activity to the summary aria-label; align the restructured composer card's assertion with it.
1 parent ed3b097 commit afbc792

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ui/src/components/session-progress-card.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ describe("renderSessionProgressCard", () => {
143143
);
144144
expect(card?.open).toBe(true);
145145
expect(card?.dataset.complete).toBe("false");
146-
expect(card?.querySelector("summary")?.getAttribute("aria-label")).toBe("1 of 3 completed");
146+
expect(card?.querySelector("summary")?.getAttribute("aria-label")).toMatch(
147+
/^1 of 3 completed\. Last activity: /,
148+
);
147149
expect(card?.querySelector("[role=region]")?.getAttribute("aria-label")).toBe(
148150
"1 of 3 completed",
149151
);

0 commit comments

Comments
 (0)