Files
computer-playbook/roles/web-app-jitsi/files/playwright/playwright.spec.js
kevinveenbirkenbachandClaude Opus 4.7 03ced5c4e1 refactor(web-app-jitsi): split monolithic playwright.spec.js into _shared + test-*.js modules
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>
2026-05-31 20:07:45 +02:00

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);