mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
fix(admin): forward local Auth settings
This commit is contained in:
1 parent
02aa6e4a75
commit
e54f6d31ed
3 files changed
+19
-3
No files matched your search
@@ -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([]);
|
||||
});
|
||||
Reference in new issue
Block a user