mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 13:17:07 +00:00
Split each role's playwright.spec.js into `_shared.js` (env, login/post helpers, lifecycle hook) plus one `test-*.js` per scenario, registered from the orchestrator via `require().register(shared)` — matches the pattern already used by web-app-pixelfed and web-app-taiga so each test stays atomar and individually inspectable. Adds two new friendica tests: - test-anonymous-profile-view.js: pins the oauth2-proxy ACL whitelist for `/profile/` by asserting an anonymous visitor reaches biber's profile without being bounced to Keycloak. Materialises the friendica user row through the LDAP login path first since the profile would otherwise 404. - test-admin-follow-biber.js: exercises the local-instance follow flow end-to-end (POST `/contact/follow` → 302 → `/contact/<id>` with biber's nick@host on the contact detail page). Also extends `web-app-friendica/meta/services.yml` `services.oauth2.acl` with the whitelist surfaces (federation/discovery, public profile + community feed, theme assets, instance-info pages) the new anonymous-profile-view test pins. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8 lines
196 B
JavaScript
8 lines
196 B
JavaScript
const { test } = require("@playwright/test");
|
|
|
|
exports.register = function (shared) {
|
|
test("biber: app → universal logout", async ({ page }) => {
|
|
await shared.runBiberFlow(page);
|
|
});
|
|
};
|