test: add E2E testing

This commit is contained in:
Kim, Jimin 2023-07-29 09:04:23 +09:00
parent e781526337
commit ea89e17495
Signed by: pomp
GPG key ID: CE1DDB8A4A765403
9 changed files with 147 additions and 7 deletions

View file

@ -0,0 +1,9 @@
import { expect, test } from "@playwright/test"
test("should have proper title", async ({ page }) => {
await page.goto("/")
expect(await page.title()).toEqual("pomp's blog | Home")
await page.goto("/posts/test-post")
expect(await page.title()).toEqual("pomp's blog | Test post")
})