Research-Stack/4-Infrastructure/k3s-flake/tests/homarr-quick-login.spec.ts
Brandon Schneider 83ea1580d9 feat(homarr): add Playwright test specs for login, onboard, OIDC, board creation, and integrations
17 new .spec.ts files and 4 debug .png screenshots capturing:
- OIDC login flows (oidc-setup, oidc-login)
- Login variants (admin, v2, quick, cookie capture)
- Board creation and management
- Integration setup flows
- Onboarding test sequence
- Check/init/do-init lifecycle tests

Build: 0 jobs, 0 errors (no Lean files touched)
2026-05-31 20:26:16 -05:00

15 lines
705 B
TypeScript

import { test } from '@playwright/test';
test('quick login', async ({ page }) => {
test.setTimeout(20000);
await page.goto('http://100.88.57.96:30108/auth/login', { timeout: 10000, waitUntil: 'domcontentloaded' });
await page.waitForTimeout(3000);
await page.locator('input[name="username"]').fill('allaun');
await page.locator('input[type="password"]').first().fill('TYW82QNB!k0y!pXc');
await page.locator('button[type="submit"]').first().click({ force: true, noWaitAfter: true, timeout: 3000 });
await page.waitForTimeout(5000);
console.log('URL:', page.url());
const c = await page.context().cookies();
c.forEach(x => console.log(x.name + '=' + x.value.substring(0,30)));
});