Author agent
Generate tests
Turn a spec or a coverage gap into reviewed, verified tests. You accept each one before it reaches a pull request.
Source
What should the Author agent test?
gift-cards-spec-v3.md14 KB
Drafts land on a branch. Nothing merges without review.
Drafted tests
0 accepted of 6
- High confidence
- High confidence
- Medium confidence
- High confidence
- Medium confidence
- Low confidence
GiftCardTest.balanceUpdatesAfterRefund
Written by the Author agent from GIFT-SPEC v3 §4.2
GiftCardTest.spec.ts
import { test, expect } from "@playwright/test";
import { seedGiftCard, signIn } from "../fixtures";
test("balanceUpdatesAfterRefund", async ({ page }) => {
const card = await seedGiftCard({ balance: 50 });
await signIn(page, "returning-customer");
await page.goto("/checkout");
await page.getByTestId("gift-card-input").fill(card.code);
await page.getByRole("button", { name: "Apply" }).click();
await expect(page.getByTestId("gift-card-balance")).toHaveText("$50.00");
await page.getByRole("button", { name: "Place order" }).click();
await expect(page.getByTestId("order-confirmation")).toBeVisible();
});