mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 04:56:39 +02:00
✨ Add playwright to the frontend
This commit is contained in:
parent
ff04877d24
commit
4d29bff9b5
7 changed files with 379 additions and 5 deletions
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/);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue