feat(06-04): Playwright E2E test suite execution

This commit is contained in:
2026-03-03 09:05:46 +01:00
parent 99ff53250d
commit 0ff29a5d3b
6 changed files with 160 additions and 71 deletions
+18 -12
View File
@@ -1,17 +1,23 @@
import { test, expect } from "@playwright/test";
test("login page loads", async ({ page }) => {
await page.goto("/login");
await expect(page.locator("form")).toBeVisible();
});
test.describe("Gravl UI Tests (Browser-based)", () => {
// NOTE: These tests require system graphics libraries (libXcomposite, libX11, etc.)
// which are not available in the current environment.
// See: TESTING.md for browser setup instructions
test("login page loads", async ({ page }) => {
await page.goto("/login");
await expect(page.locator("form")).toBeVisible();
});
test("logo exists", async ({ page }) => {
await page.goto("/login");
const logo = await page.locator("svg, img[class*=logo], .logo").first();
await expect(logo).toBeVisible();
});
test("logo exists", async ({ page }) => {
await page.goto("/login");
const logo = await page.locator("svg, img[class*=logo], .logo").first();
await expect(logo).toBeVisible();
});
test("dashboard loads", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveTitle(/Gravl/);
test("dashboard loads", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveTitle(/Gravl/);
});
});