test: add E2E testing to main site
This commit is contained in:
parent
810d994688
commit
296be0e5b2
5 changed files with 84 additions and 0 deletions
12
apps/main/e2e/title.spec.ts
Normal file
12
apps/main/e2e/title.spec.ts
Normal 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`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue