test: add E2E testing to main site

This commit is contained in:
Kim, Jimin 2023-07-29 10:01:58 +09:00
parent 810d994688
commit 296be0e5b2
Signed by: pomp
GPG key ID: CE1DDB8A4A765403
5 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import { expect, test } from "@playwright/test"
const prefix = "developomp | "
test("should have proper title", async ({ page }) => {
await page.goto("/")
expect(await page.title()).toEqual("developomp")
await page.goto("/404")
await page.waitForTimeout(1000)
expect(await page.title()).toEqual(`${prefix}Page Not Found`)
})