mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +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>
16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
const { test } = require("@playwright/test");
|
|
|
|
const shared = require("./_shared");
|
|
|
|
test.use({
|
|
ignoreHTTPSErrors: true,
|
|
});
|
|
|
|
test.beforeEach(shared.beforeEach);
|
|
|
|
require("./test-landing").register(shared);
|
|
require("./test-guest-persona").register(shared);
|
|
require("./test-login-biber").register(shared);
|
|
require("./test-login-administrator").register(shared);
|
|
require("./test-login-via-ldap").register(shared);
|