import { test, expect } from '@playwright/test'; test('admin redirects to login when not authenticated', async ({ page }) => { await page.goto('/admin'); await expect(page).toHaveURL(/\/login/); }); test('foster redirects to login when not authenticated', async ({ page }) => { await page.goto('/foster'); await expect(page).toHaveURL(/\/login/); });