Todo
This commit is contained in:
9
e2e/global-setup.ts
Normal file
9
e2e/global-setup.ts
Normal 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
12
e2e/smoke.pw.ts
Normal 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()
|
||||
})
|
||||
Reference in New Issue
Block a user