Files
computer-playbook/roles/web-app-zammad/files/playwright/playwright.spec.js
kevinveenbirkenbachandClaude Opus 5 c94a0a0b5d test(mcp): ask the ten enabled surfaces the hostile question
Nine roles enabled an MCP surface without a browser-side spec, so nothing
ever asked what the endpoint answers a caller with no credential at all.
Lift gitea's assertion into two shared registrars and register them per
role, and give each role the MCP_SERVICE_ENABLED flag they gate on.

mcpEndpointUrl now takes the base URL rather than reading APP_BASE_URL
unconditionally: jellyfin and zammad export their own base variable, and
declaring APP_BASE_URL for them would un-skip the shared guest persona,
which collapses itself on that variable being absent.

The env-gate scanner follows require("./x") into the shared harness so a
gate declared there counts as consumed, and strips block comments first
so service-gating.js's own doc examples do not credit EMAIL, SSO and OICD
to every role that imports it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-01 16:06:19 +02:00

23 lines
783 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-mcp-guest").register();
require("./test-csp-headers").register(shared);
require("./test-login-administrator").register(shared);
require("./test-login-biber").register(shared);
require("./test-login-via-ldap").register(shared);
require("./test-guest-persona").register(shared);
require("./test-rest-api-ticket-create").register(shared);
require("./test-ticket-create-as-customer").register(shared);
require("./test-ticket-reply-as-agent").register(shared);
require("./test-websocket-realtime").register(shared);
require("./test-ai-gateway").register(shared);