fix(e2e): assert the fixture terminal status in the browser

Blocker baseline cases correctly reach Blocked and must not inherit the generic completion-only Done assertion. Preserve run-count and durable-state assertions.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-09-21 19:51:10 -05:00
1 parent 91b62ce1db
commit 7b68329d2a
1 file changed
+5 -1
+5 -1
View File
@@ -2346,9 +2346,13 @@ for (const execution of executions) {
await expect(terminalAgentReplies.first()).toHaveText(marker, {
useInnerText: true,
});
// The fixture owns the expected disposition; blocked workflows must prove
// their Blocked UI rather than inheriting the completion-only Done check.
const expectedStatus = execution.task.expectedTerminalState.issue;
const expectedStatusLabel = expectedStatus.replace(/_/g, " ").replace(/^./, (letter) => letter.toUpperCase());
await expect(
page.getByTestId("issue-detail-header").getByRole("button", {
name: "Change status (current: Done)",
name: `Change status (current: ${expectedStatusLabel})`,
exact: true,
}),
).toBeVisible({ timeout: 30_000 });