Files
Sauci/e2e/specs/admin.spec.ts
jjbrunton 01bb8225ae chore(harness): make repository agent-ready
Add concise routed context, task-aware agent roles, focused skills, and structured learning promotion.\n\nUnify local development and workspace tooling, add layered test and E2E verification, harden MCP authentication, and gate deployment behind verification and explicit production promotion.
2026-08-27 20:58:48 +01:00

12 lines
486 B
TypeScript

import { expect, test } from '@playwright/test';
const admin = process.env.ADMIN_URL ?? 'http://127.0.0.1:3001';
test('unauthenticated admin access reaches the real login boundary', async ({ page }) => {
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();
});