rename apps/main
-> apps/www
This commit is contained in:
parent
21c3ff3872
commit
7db6fada2a
37 changed files with 0 additions and 0 deletions
6
apps/www/e2e/notfound.spec.ts
Normal file
6
apps/www/e2e/notfound.spec.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { expect, test } from "@playwright/test"
|
||||
|
||||
test("Should return 404 for invalid routes", async ({ page }) => {
|
||||
const response = await page.goto("/path/that/does/not/exist")
|
||||
expect(response?.status()).toEqual(404)
|
||||
})
|
11
apps/www/e2e/title.spec.ts
Normal file
11
apps/www/e2e/title.spec.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
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`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue