mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
24 lines
1.0 KiB
JavaScript
24 lines
1.0 KiB
JavaScript
const { test, expect } = require("@playwright/test");
|
|
const { resolveTimeout } = require("../timeouts");
|
|
const { skipUnlessAddonEnabled } = require("../addon-gating");
|
|
const shared = require("../_shared");
|
|
|
|
test.use({ ignoreHTTPSErrors: true });
|
|
|
|
test.beforeEach(shared.beforeEach);
|
|
|
|
test("addon ldap-authentication: biber signs in via the LDAP plugin and lands on the Jellyfin home", async ({ page }) => {
|
|
skipUnlessAddonEnabled("ldap-authentication");
|
|
test.skip(
|
|
shared.env.ssoEnabled === true,
|
|
"SSO is active: biber is OIDC-bound; the LDAP login path runs in the ldap-only variant",
|
|
);
|
|
test.setTimeout(resolveTimeout(60_000));
|
|
expect(shared.env.biberUsername, "BIBER_USERNAME must be set").toBeTruthy();
|
|
expect(shared.env.biberPassword, "BIBER_PASSWORD must be set").toBeTruthy();
|
|
|
|
await shared.signInViaLdap(page, shared.env.biberUsername, shared.env.biberPassword, "biber-ldap");
|
|
await expect(page.locator("body")).toContainText(/home|library|media|jellyfin/i, { timeout: resolveTimeout(60_000) });
|
|
await shared.logout(page, "biber-ldap");
|
|
});
|