Files
computer-playbook/roles/web-app-mattermost/files/playwright/test-biber-persona.js
kevinveenbirkenbachandClaude Opus 4.7 a7c520d97f refactor(web-app-mattermost): split playwright.spec.js into per-test files
The single spec mixed an SSO login test, a biber-DM-administrator test, and the three persona shims; each rebuilt its own env-var bindings and helpers. Splits the surface into thin per-test modules around a `_shared.js` that owns the env asserts, the popup/channel-view/logout helpers, and the SSO bootstrap.

`startMattermostSsoFlow` now polls `/login` for up to 120 s instead of waiting 30 s once, so the v1 bulk reinstall no longer flakes when the Mattermost SPA takes longer than 30 s to mount `#input_loginId` under concurrent deploy load.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 10:24:31 +02:00

10 lines
232 B
JavaScript

const { test } = require("@playwright/test");
const { runBiberFlow } = require("./personas");
exports.register = function () {
test("biber: app → universal logout", async ({ page }) => {
await runBiberFlow(page);
});
};