Add login page as Page Object Model

This commit is contained in:
Eva Marco 2024-05-06 17:29:27 +02:00
parent 7280dfd3f7
commit 832c1db63b
19 changed files with 143 additions and 85 deletions

View file

@ -0,0 +1,14 @@
import { test, expect } from "@playwright/test";
test("Has title", async ({ page }) => {
await page.route("**/api/rpc/command/get-profile", (route) => {
route.fulfill({
status: 200,
contentType: "application/transit+json",
path: "playwright/data/get-profile-anonymous.json",
});
});
await page.goto("/");
await expect(page).toHaveTitle(/Penpot/);
});