Research-Stack/4-Infrastructure/k3s-flake/tests/dump-plugins-html.spec.ts
Brandon Schneider 9e80ac68ca feat(infra): Jellyfin wizard complete, SSO-Auth plugin files deployed
- Jellyfin setup wizard completed, admin account created (admin/jellyfin-admin)
- SSO-Auth plugin v4.0.0.3 downloaded and placed in plugins directory
- Authentik OIDC provider for Jellyfin updated with correct redirect URI
- All services verified running

Build: 3313 jobs, 0 errors (lake build Compiler)
2026-05-31 14:14:20 -05:00

27 lines
1.1 KiB
TypeScript

import { test, expect } from '@playwright/test';
test('Dump plugins page HTML', async ({ browser }) => {
const context = await browser.newContext({ storageState: 'auth-state.json' });
const page = await context.newPage();
console.log('Navigating directly to plugins page...');
await page.goto('https://media.researchstack.info/web/#/dashboard/plugins');
await page.waitForLoadState('networkidle');
await page.waitForTimeout(5000);
const bodyHtml = await page.evaluate(() => document.body.innerHTML);
console.log('Plugins Body HTML length:', bodyHtml.length);
// Log the first 4000 characters and look for tab buttons
console.log('Body HTML:', bodyHtml.slice(0, 4000));
// Let's also look for text "Available" in the HTML string and show surrounding content
const idx = bodyHtml.indexOf('Available');
if (idx !== -1) {
console.log('Found "Available" at index:', idx);
console.log('Context:', bodyHtml.slice(Math.max(0, idx - 200), idx + 200));
} else {
console.log('"Available" text not found in raw innerHTML!');
}
await context.close();
});