mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 20:26:33 +00:00
Matches the zammad layout: `_shared.js` centralises env decode, the `reachJitsiPrejoin` / `openJitsiSettingsPanel` helpers, the persona runners, and the `beforeEach` viewport / cookie reset. `playwright.spec.js` shrinks to a bootstrap that loads `_shared` and require()s each scenario module's `register(shared)` hook. Each `test-*.js` owns one persona scenario: - test-landing.js — canonical landing + CSP header baseline - test-guest-persona.js — guest auth chain (never authenticated) - test-login-biber.js — biber OIDC → join room → logout - test-login-administrator.js — administrator OIDC → settings → logout - test-login-via-ldap.js — biber + administrator LDAP-bound scenarios No spec-level behaviour change: lint-playwright lists the same six tests and `make test` stays 5/5 green (186 OK). Co-Authored-By: Claude Opus 4.7 <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);
|
|
});
|
|
};
|