design: apply Pixel design system tokens (Fira Sans/Code, CSS vars, badge helpers); add Playwright E2E setup + auth spec
This commit is contained in:
16
e2e/helpers/auth.ts
Normal file
16
e2e/helpers/auth.ts
Normal 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 });
|
||||
}
|
||||
Reference in New Issue
Block a user