feat(payment): confirm renewal only at checkout
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("serves the VIP membership benefits agreement from the same site", async ({
|
||||
page,
|
||||
}) => {
|
||||
const response = await page.goto("/legal/vip-membership-benefits.html");
|
||||
|
||||
expect(response?.status()).toBe(200);
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "VIP Membership Benefits Agreement" }),
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
test("serves the automatic renewal agreement from the same site", async ({
|
||||
page,
|
||||
}) => {
|
||||
const response = await page.goto("/legal/automatic-renewal.html");
|
||||
|
||||
expect(response?.status()).toBe(200);
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Automatic Renewal Agreement" }),
|
||||
).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user