Add playwright to the frontend

This commit is contained in:
Belén Albeza 2024-04-05 10:32:25 +02:00 committed by Andrey Antukh
parent ff04877d24
commit 4d29bff9b5
7 changed files with 379 additions and 5 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/fixtures/get-profile-anonymous.json",
});
});
await page.goto("/");
await expect(page).toHaveTitle(/Penpot/);
});