mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-08-06 23:05:47 +00:00
- SSO-Auth plugin Active with Authentik OIDC provider - SSO redirect endpoint verified (302 -> auth.researchstack.info) - Login disclaimer and custom CSS for SSO button - All 22+ services operational with HTTPS Build: 3313 jobs, 0 errors (lake build Compiler)
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import { test } from '@playwright/test';
|
|
test('Jellyfin branding SSO button', async ({ page }) => {
|
|
test.setTimeout(60000);
|
|
|
|
// Login
|
|
await page.goto('http://100.88.57.96:30091/web/#/login.html');
|
|
await page.waitForTimeout(3000);
|
|
await page.locator('#txtUsername').fill('admin');
|
|
await page.locator('#txtPassword').fill('jellyfin-admin');
|
|
await page.locator('button.button-submit').first().click();
|
|
await page.waitForTimeout(5000);
|
|
|
|
// Go to general settings
|
|
await page.goto('http://100.88.57.96:30091/web/#/dashboard/general');
|
|
await page.waitForTimeout(5000);
|
|
|
|
// Fill disclaimer textarea
|
|
const textareas = page.locator('textarea');
|
|
const count = await textareas.count();
|
|
console.log(`Found ${count} textareas`);
|
|
|
|
if (count >= 1) {
|
|
await textareas.nth(0).fill('');
|
|
await textareas.nth(0).fill('<form action="https://media.researchstack.info/sso/OID/start/authentik"><button class="raised block emby-button button-submit">Sign in with SSO</button></form>');
|
|
}
|
|
if (count >= 2) {
|
|
await textareas.nth(1).fill('a.raised.emby-button { padding:0.9em 1em; color: inherit !important; }.disclaimerContainer { display: block; }');
|
|
}
|
|
|
|
// Save
|
|
await page.locator('button:has-text("Save"):visible').first().click();
|
|
await page.waitForTimeout(3000);
|
|
console.log('SSO branding saved');
|
|
});
|