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();
});
