Add repo Playwright smoke setup

This commit is contained in:
2026-04-03 00:39:42 +02:00
parent 48439fd21d
commit 9b9927084b
8 changed files with 209 additions and 1 deletions

11
tests/e2e/smoke.spec.js Normal file
View File

@@ -0,0 +1,11 @@
const { test, expect } = require("@playwright/test");
test("home page loads auth entry points", async ({ page }) => {
await page.goto("/");
await expect(page.locator("h1")).toContainText("RpgRoller");
await expect(page.getByRole("heading", { name: "Register" })).toBeVisible();
await expect(page.getByRole("heading", { name: "Login" })).toBeVisible();
await expect(page.getByLabel("Username").first()).toBeVisible();
await expect(page.getByLabel("Password").nth(1)).toBeVisible();
});