mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
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:
1 parent
91b62ce1db
commit
7b68329d2a
1 file changed
+5
-1
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user