2022-01-03 22:50:59 +00:00
|
|
|
import { expect, test } from "@playwright/test";
|
|
|
|
|
2022-03-17 19:36:11 +00:00
|
|
|
test.describe("Trial account tests", () => {
|
|
|
|
// Using logged in state from globalSteup
|
|
|
|
test.use({ storageState: "playwright/artifacts/trialStorageState.json" });
|
2022-01-03 22:50:59 +00:00
|
|
|
|
2022-03-17 19:36:11 +00:00
|
|
|
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]");
|
2022-01-03 22:50:59 +00:00
|
|
|
|
2022-03-17 19:36:11 +00:00
|
|
|
await expect(page.locator(`[data-testid=trial-banner]`)).toBeVisible();
|
|
|
|
});
|
2022-01-03 22:50:59 +00:00
|
|
|
});
|