mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
29 lines
948 B
JavaScript
29 lines
948 B
JavaScript
const { test, expect } = require("./onion-test");
|
|
|
|
const { skipUnlessServiceEnabled } = require("./service-gating");
|
|
const {
|
|
adminUsername,
|
|
adminPassword,
|
|
biberUsername,
|
|
biberPassword,
|
|
ssoLoginAndAssertUsername,
|
|
} = require("./_shared");
|
|
|
|
test.use({ ignoreHTTPSErrors: true });
|
|
|
|
test("opencloud sso login (administrator) lands on files view", async ({ page }) => {
|
|
skipUnlessServiceEnabled("sso");
|
|
expect(adminUsername, "LOGIN_USERNAME must be set").toBeTruthy();
|
|
expect(adminPassword, "LOGIN_PASSWORD must be set").toBeTruthy();
|
|
|
|
await ssoLoginAndAssertUsername(page, adminUsername, adminPassword);
|
|
});
|
|
|
|
test("opencloud sso login (biber) lands on files view", async ({ page }) => {
|
|
skipUnlessServiceEnabled("sso");
|
|
expect(biberUsername, "BIBER_USERNAME must be set").toBeTruthy();
|
|
expect(biberPassword, "BIBER_PASSWORD must be set").toBeTruthy();
|
|
|
|
await ssoLoginAndAssertUsername(page, biberUsername, biberPassword);
|
|
});
|