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)
22 lines
823 B
TypeScript
22 lines
823 B
TypeScript
import { test } from '@playwright/test';
|
|
import fs from 'fs';
|
|
|
|
test('Get Homarr cookie', async ({ page }) => {
|
|
test.setTimeout(30000);
|
|
await page.goto('http://100.88.57.96:30108/auth/login', { timeout: 10000 });
|
|
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:has-text("Login"):visible').first().click();
|
|
await page.waitForTimeout(5000);
|
|
|
|
// Get cookies
|
|
const cookies = await page.context().cookies();
|
|
for (const c of cookies) {
|
|
if (c.name.includes('sid') || c.name.includes('token') || c.name.includes('session')) {
|
|
console.log(`${c.name}=${c.value}`);
|
|
}
|
|
}
|
|
console.log('All cookies:', cookies.map(c => c.name).join(', '));
|
|
});
|