Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

test: wait until the approval Send control is enabled

Cursor Agent8e15849068e6
diff --git a/apps/native/e2e/approval-card.pw.ts b/apps/native/e2e/approval-card.pw.ts
index 0d13639f..9e9fa562 100644
--- a/apps/native/e2e/approval-card.pw.ts
+++ b/apps/native/e2e/approval-card.pw.ts
@@ -95,8 +95,10 @@ test("multi-question radio and checkbox answers require explicit progression", a
test("Answers sent waits for acknowledgement and keeps the selection after a failed delivery", async ({ page }) => {
const card = page.getByRole("region", { name: "Acknowledged approval" });
+ const send = card.getByRole("button", { name: "Send" });
await card.getByRole("button", { name: "Yes" }).click();
- await card.getByRole("button", { name: "Send" }).click();
+ await expect(send).toBeEnabled();
+ await send.click();
await expect(card.getByText("Sending…")).toBeVisible();
await expect(card.getByText("Answers sent")).toHaveCount(0);
await expect(card.getByRole("alert")).toHaveText("notify failed");