import { expect, test } from '@playwright/test'; test('check all navigation links', async ({ page }) => { const baseUrl = 'http://localhost:3000'; const routes = ['/', '/about', '/contact', '/privacy', '/map', '/heritage', '/admin']; for (const route of routes) { await page.goto(`${baseUrl}${route}`); await expect(page).toHaveURL(`${baseUrl}${route}`); // Additional check: ensure no error messages or 404 await expect(page.locator('text=404')).toHaveCount(0); } });