pompy.dev/apps/main/e2e/title.spec.ts

11 lines
292 B
TypeScript

import { expect, test } from "@playwright/test"
const prefix = "pomp | "
test("should have proper title", async ({ page }) => {
await page.goto("/")
await expect(page).toHaveTitle("pomp")
await page.goto("/404")
await expect(page).toHaveTitle(`${prefix}Page Not Found`)
})