Research-Stack/4-Infrastructure/k3s-flake/tests/find-available-element.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

28 lines
1.2 KiB
TypeScript

import { test, expect } from '@playwright/test';
test('Find Available element HTML', async ({ browser }) => {
const context = await browser.newContext({ storageState: 'auth-state.json' });
const page = await context.newPage();
await page.goto('https://media.researchstack.info/web/#/dashboard/plugins');
await page.waitForLoadState('networkidle');
await page.waitForTimeout(4000);
// Print HTML of elements containing "Available"
const elementsHtml = await page.evaluate(() => {
// Find all elements containing the text "Available"
const results: string[] = [];
const walk = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);
let n;
while (n = walk.nextNode()) {
const el = n as HTMLElement;
if (el.textContent === 'Available' || el.getAttribute('class')?.includes('Available') || el.innerText === 'Available') {
results.push(`<${el.tagName.toLowerCase()} class="${el.className}" id="${el.id}" href="${el.getAttribute('href') || ''}">${el.outerHTML.slice(0, 300)}</${el.tagName.toLowerCase()}>`);
}
}
return results;
});
console.log('Available elements found:', elementsHtml);
await context.close();
});