import { test, expect } from '@playwright/test'; import { adminPath } from './helpers.mjs'; test('admin UI smoke: key admin pages load', async ({ page }) => { await page.goto(adminPath('feca-mailshot-data-sources')); await expect(page.getByRole('heading', { name: 'Mailshot Data Sources' })).toBeVisible(); await page.goto(adminPath('feca-mailshots-mailshots')); await expect(page.locator('h1', { hasText: 'Mailshots' })).toBeVisible(); await page.goto(adminPath('feca-mailshots-attachments')); await expect(page.locator('h1', { hasText: 'Attachments' })).toBeVisible(); await page.goto(adminPath('feca-mailshots-pdf-assets')); await expect(page.locator('h1', { hasText: 'PDF Assets' })).toBeVisible(); });