12 lines
494 B
TypeScript
12 lines
494 B
TypeScript
import { expect, test } from '@playwright/test'
|
|||
|
|
|
||
|
|
test('/admin redirects to the real PocketBase dashboard', async ({ page }) => {
|
||
|
|
await page.goto('/admin')
|
||
|
|
|
||
|
|
await expect(page).toHaveURL(/\/_\/(#.*)?$/)
|
||
|
|
// The static <title> is "PocketBase"; the dashboard SPA then renders its
|
||
|
|
// login view and retitles the page — asserting the live title also proves
|
||
|
|
// the dashboard's own JS bundle loaded and ran correctly through the proxy.
|
||
|
|
await expect(page).toHaveTitle('Superuser login')
|
||
|
|
})
|