design: apply Pixel design system tokens (Fira Sans/Code, CSS vars, badge helpers); add Playwright E2E setup + auth spec

This commit is contained in:
Forge
2026-03-26 08:54:44 +08:00
parent 4970c70546
commit 981b415430
8 changed files with 243 additions and 53 deletions

16
e2e/helpers/auth.ts Normal file
View File

@@ -0,0 +1,16 @@
import { Page } from '@playwright/test';
export const DEMO = {
tenant: 'demo-isp',
email: 'admin@demo-isp.com',
password: 'Admin123!',
};
export async function login(page: Page, creds = DEMO) {
await page.goto('/login');
await page.fill('input[placeholder="e.g. demo-isp"]', creds.tenant);
await page.fill('input[type="email"]', creds.email);
await page.fill('input[type="password"]', creds.password);
await page.click('button[type="submit"]');
await page.waitForURL('**/dashboard', { timeout: 10000 });
}