This commit is contained in:
2026-02-10 02:06:54 +01:00
parent 5290560d68
commit ef5e98ad5d
29 changed files with 1529 additions and 8 deletions

9
e2e/global-setup.ts Normal file
View File

@ -0,0 +1,9 @@
import { execSync } from "node:child_process"
async function globalSetup() {
execSync("bun run db:generate", {
stdio: "inherit",
})
}
export default globalSetup

12
e2e/smoke.pw.ts Normal file
View File

@ -0,0 +1,12 @@
import { expect, test } from "@playwright/test"
test("smoke", async ({ page }, testInfo) => {
await page.goto("/")
if (testInfo.project.name === "web-chromium") {
await expect(page.getByRole("heading", { name: /your next\.js cms frontend/i })).toBeVisible()
return
}
await expect(page.getByRole("heading", { name: /content dashboard/i })).toBeVisible()
})