test: add E2E testing
This commit is contained in:
parent
e781526337
commit
ea89e17495
9 changed files with 147 additions and 7 deletions
9
apps/blog/e2e/title.spec.ts
Normal file
9
apps/blog/e2e/title.spec.ts
Normal 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")
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue