mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-29 00:06:05 +00:00
15 lines
953 B
TypeScript
15 lines
953 B
TypeScript
import { expect, test } from "../lib/proof.ts";
|
|
|
|
// The workspace Plans tab lists the agency plans below the regular ones; see the README for the stack it needs.
|
|
test("a workspace's Plans tab lists the agency plans", async ({ page, proof }) => {
|
|
test.skip(process.env.QA_BILLING !== "1", "Start the stack with QA_STRIPE_SECRET_KEY so it bills, and set QA_BILLING=1.");
|
|
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" });
|
|
});
|