fix(admin): forward local Auth settings

This commit is contained in:
jjbrunton committed 2026-08-30 21:40:09 +01:00
1 parent 02aa6e4a75
commit e54f6d31ed
3 files changed
+19 -3

No files matched your search

+4
View File
@@ -4,9 +4,13 @@ const admin = process.env.ADMIN_URL;
if (!admin) throw new Error('Run E2E through npm run verify:e2e');
test('unauthenticated admin access reaches the real login boundary', async ({ page }) => {
const pageErrors: string[] = [];
page.on('pageerror', (error) => pageErrors.push(error.message));
await page.goto(admin);
await expect(page).toHaveURL(/\/login$/);
await expect(page.getByRole('heading', { name: 'Welcome Back' })).toBeVisible();
await expect(page.getByLabel('Email Address')).toBeVisible();
await expect(page.getByLabel('Password')).toBeVisible();
expect(pageErrors).toEqual([]);
});