cal.pub0.org/apps/web/playwright/trial.test.ts

16 lines
549 B
TypeScript

import { expect, test } from "@playwright/test";
test.describe("Trial account tests", () => {
// Using logged in state from globalSteup
test.use({ storageState: "playwright/artifacts/trialStorageState.json" });
test("Trial banner should be visible to TRIAL users", async ({ page }) => {
// Try to go homepage
await page.goto("/");
// It should redirect you to the event-types page
await page.waitForSelector("[data-testid=event-types]");
await expect(page.locator(`[data-testid=trial-banner]`)).toBeVisible();
});
});