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

21
playwright.config.ts Normal file
View File

@@ -0,0 +1,21 @@
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: false, // run serially — shared demo tenant
forbidOnly: !!process.env.CI,
retries: 1,
workers: 1,
reporter: [['html', { outputFolder: 'playwright-report' }], ['line']],
use: {
baseURL: process.env.E2E_BASE_URL || 'http://192.168.1.167:3002',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], headless: true },
},
],
});