mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Add playwright to the frontend
This commit is contained in:
committed by
Andrey Antukh
parent
ff04877d24
commit
4d29bff9b5
14
frontend/playwright/example.spec.js
Normal file
14
frontend/playwright/example.spec.js
Normal 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/);
|
||||
});
|
||||
4
frontend/playwright/fixtures/get-profile-anonymous.json
Normal file
4
frontend/playwright/fixtures/get-profile-anonymous.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"~:id": "~u00000000-0000-0000-0000-000000000000",
|
||||
"~:fullname": "Anonymous User"
|
||||
}
|
||||
Reference in New Issue
Block a user