mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +00:00
Mirror the nextcloud playwright layout: orchestrator + _shared.js for multi-consumer logic, one test-*.js per scenario (baseline, ldap-variant, profile-readonly, keycloak-scope, lam-writethrough, administrator-persona, guest-persona). Extract the duplicated Account REST middleName-write into setMiddleNameViaAccountRest in _shared.js, parametrized by withRestore so keycloak-scope drives the round-trip+restore path and lam-writethrough drives the write-only path. Add LAM_OAUTH2_FRONTED to playwright.env.j2 and gate the LAM UI verifier on it. With web-app-keycloak deployed, LAM is fronted by oauth2-proxy, its native /templates/login.php is replaced by the Keycloak login page, and the LDAP-bind admin password is unusable. The Keycloak-side write is still verified end-to-end by keycloak-scope's main test. Net diff -20 lines vs. the original monolith despite the new helper. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8 lines
225 B
JavaScript
8 lines
225 B
JavaScript
const { test } = require("@playwright/test");
|
|
|
|
exports.register = function (shared) {
|
|
test("guest: public-landing → auth chain → never authenticated", async ({ page }) => {
|
|
await shared.runGuestFlow(page);
|
|
});
|
|
};
|