mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
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)
19 lines
726 B
TypeScript
19 lines
726 B
TypeScript
import { test } from '@playwright/test';
|
|
test('Check Homarr v1', async ({ page }) => {
|
|
test.setTimeout(30000);
|
|
await page.goto('http://100.88.57.96:30108/', { timeout: 10000, waitUntil: 'domcontentloaded' });
|
|
await page.waitForTimeout(5000);
|
|
console.log('Title:', await page.title());
|
|
|
|
// Check for buttons
|
|
const buttons = await page.locator('button, a[role="button"]').all();
|
|
for (const b of buttons) {
|
|
const text = await b.textContent();
|
|
if (await b.isVisible()) console.log(` "${text?.trim()}"`);
|
|
}
|
|
|
|
// Check for OIDC
|
|
const hasOidc = await page.locator('text=Authentik').count();
|
|
console.log('Authentik button:', hasOidc > 0);
|
|
await page.screenshot({ path: '/tmp/homarr-v1.png' });
|
|
});
|