From ff040fb5405a2ccd87cb482e0825d47ab90ab644 Mon Sep 17 00:00:00 2001 From: Matthew Meszaros Date: Wed, 11 Nov 2026 07:19:46 +0100 Subject: [PATCH] feat: record the workspace Plans tab's agency plans section as proof --- qa/flows/billing-agency-plans.flow.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 qa/flows/billing-agency-plans.flow.ts diff --git a/qa/flows/billing-agency-plans.flow.ts b/qa/flows/billing-agency-plans.flow.ts new file mode 100644 index 000000000..91ccbbea0 --- /dev/null +++ b/qa/flows/billing-agency-plans.flow.ts @@ -0,0 +1,13 @@ +import { expect, test } from "../lib/proof.ts"; + +// The workspace Plans tab lists the agency plans below the regular ones. Needs a stack that bills (QA_STRIPE_SECRET_KEY). +test("a workspace's Plans tab lists the agency plans", async ({ page, proof }) => { + await page.goto("/app/settings/billing/plans"); + const section = page.getByText("Agency plans", { exact: true }).first(); + await expect(section).toBeVisible(); + await expect(page.getByText("150,000 shared sends a month")).toBeVisible(); + await expect(page.getByRole("link", { name: "Set up an agency" })).toBeVisible(); + await section.evaluate((node) => node.scrollIntoView({ block: "start", behavior: "instant" })); + await proof.dwell(800); + await proof.shot("billing-agency-plans", { caption: "Settings > Billing > Plans: the agency plans, leading to the agency" }); +});