Skip to content

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

Python

Fix approval test DOM typing

yxlyx5f2f3cd49881
diff --git a/apps/native/e2e/approval-card.pw.ts b/apps/native/e2e/approval-card.pw.ts
index c2b99f79..d6e235ee 100644
--- a/apps/native/e2e/approval-card.pw.ts
+++ b/apps/native/e2e/approval-card.pw.ts
@@ -22,8 +22,9 @@ test("a radio click waits for Send, submits the latest selection once, and ignor
await expect(pistachio).toHaveAttribute("aria-pressed", "false");
await expect(mint).toHaveAttribute("aria-pressed", "true");
await card.getByRole("button", { name: "Send" }).evaluate((button) => {
- button.click();
- button.click();
+ const sendButton = button as HTMLButtonElement;
+ sendButton.click();
+ sendButton.click();
});
await expect(submissions).toHaveText(JSON.stringify(["Mint"]));