2021-12-15 16:25:49 +00:00
|
|
|
import { test } from "@playwright/test";
|
2021-11-02 14:19:40 +00:00
|
|
|
|
2022-03-17 19:36:11 +00:00
|
|
|
test.describe("Login tests", () => {
|
|
|
|
// Using logged in state from globalSteup
|
|
|
|
test.use({ storageState: "playwright/artifacts/proStorageState.json" });
|
2021-11-02 14:19:40 +00:00
|
|
|
|
2022-03-17 19:36:11 +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
|
|
|
|
await page.waitForSelector("[data-testid=event-types]");
|
|
|
|
});
|
2021-11-02 14:19:40 +00:00
|
|
|
});
|