mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
- 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)
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('Check Uptime Kuma settings', async ({ browser }) => {
|
|
const context = await browser.newContext({ storageState: 'auth-state.json' });
|
|
const page = await context.newPage();
|
|
|
|
console.log('Navigating to Uptime Kuma...');
|
|
await page.goto('https://uptime.researchstack.info/dashboard');
|
|
await page.waitForLoadState('networkidle');
|
|
await page.waitForTimeout(4000);
|
|
|
|
// If we see login inputs
|
|
const usernameInput = page.locator('input[type="text"]');
|
|
const passwordInput = page.locator('input[type="password"]');
|
|
|
|
if (await usernameInput.isVisible()) {
|
|
console.log('Logging in with admin...');
|
|
await usernameInput.fill('admin');
|
|
await passwordInput.fill('RY03KhsFez73K5va2uUb');
|
|
await page.locator('button[type="submit"]').click();
|
|
await page.waitForTimeout(6000);
|
|
}
|
|
|
|
console.log('Current URL:', page.url());
|
|
await page.screenshot({ path: 'uptime-kuma-logged-in.png' });
|
|
|
|
// Let's click the user icon/menu or navigate to /settings
|
|
// Wait, let's look at the DOM to see how to go to settings.
|
|
const textContent = await page.evaluate(() => document.body.innerText);
|
|
console.log('Uptime Kuma text:', textContent.slice(0, 1000));
|
|
|
|
await context.close();
|
|
});
|