Add Playwright database E2E inspections

This commit is contained in:
2026-08-05 12:45:03 +02:00
parent d7d5c0f912
commit 4c0c53d6e9
8 changed files with 145 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
import { test, expect } from "playwright/test";
test("catalog maker shell loads without page errors", async ({ page }) => {
const pageErrors = [];
page.on("pageerror", (error) => pageErrors.push(error.message));
await page.goto("/");
await expect(page.locator("#settingsButton")).toBeVisible();
await expect(page.locator("#recordId")).toBeVisible();
await expect(page.locator("#variantHeader")).toBeVisible();
await page.screenshot({ path: "test-results/catalog-maker-shell.png", fullPage: true });
expect(pageErrors).toEqual([]);
});
test("settings modal opens and shows local database controls", async ({ page }) => {
await page.goto("/");
await page.locator("#settingsButton").click();
await expect(page.locator("#settingsModal")).toBeVisible();
await expect(page.locator("#localDbHost")).toBeVisible();
await expect(page.locator("#testLocalDbButton")).toBeVisible();
});