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

12 lines
378 B
TypeScript
Raw Normal View History

import { test } from "@playwright/test";
2021-11-02 14:19:40 +00:00
// Using logged in state from globalSteup
test.use({ storageState: "playwright/artifacts/proStorageState.json" });
2021-11-02 14:19:40 +00:00
test("login with pro@example.com", async ({ page }) => {
// Try to go homepage
await page.goto("/");
// It should redirect you to the event-types page
2021-11-02 14:19:40 +00:00
await page.waitForSelector("[data-testid=event-types]");
});