With the upstream default TabsMode=both, phpMyAdmin renders each tab as an icon whose alt carries the label plus the same label as text, so the accessible name of the link is the label twice and an anchored getByRole name match cannot resolve it. Select the entry by its route instead, which is what the assertion claims to prove and what survives a translated interface.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The in-house theme still carried pink, skyblue, olive, teal and lime, painted success messages in the warning tint and put on-primary text on success and danger buttons. Those now take danger, info, warning and success tokens with their subtle, border, hover and active steps; the meter drops its gradients and .bg-secondary gets a surface. When a user picks another theme in the chooser, the design script pins the light palette so no dark tokens land on that light theme. The spec asserts that every color of the theme sheet comes from a token, walks the chooser to another theme and back, and checks the collation badges and a success message in both modes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Resolved 35 conflicts per the designer x store-i18n checklist: store-i18n stays the single point of truth for credentials and role logic, designer's verified design work is kept.
Credential convergers: store-i18n's realign contract wins where both sides have one (mediawiki realign_admin_password.sh over converge_admin.php, pgadmin realign over administrator.yml, matomo utils/converge_superuser.yml over 09_admin_password.yml); the designer-only ones with no counterpart stay.
READMEs: test_readme.py hard-fails a committed Quick Setup or Credits block, both of which designer's side carries, so those go and only the Further Resources heading rename and the gallery links remain. SuiteCRM takes main's session fix, leaving exactly one SUITECRM_SESSION_CONFIG_HOST and dropping the Symfony cache-rebuild task the entrypoint now covers.
Two defects the rename detection hid: git paired store-i18n's web-app-meta against designer's web-app-sphinx, so sphinx's design slots would have been lost and its require(./test-design) landed in web-app-meta, whose spec has no such file. The sphinx design spec and its require now sit in web-app-docs, the role store-i18n renamed sphinx to.
Designer's eleven new Playwright design specs read env with || "" defaults, which test_unguarded_env_default.py refuses because an empty string matches every substring assertion; 35 bindings now go through requireDotenvValue.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
phpMyAdmin themes are directories, so the role ships one named infinito
on top of pmahomme: tasks/main.yml renders templates/theme/ (theme.json,
theme.css, theme.rtl.css, jquery-ui.css and design.css, which maps
page, navigation, results, cards, primary action and the highlighted
SQL onto the design tokens and carries the logo) when design is on, meta/volumes.yml mounts
the directory read-only and templates/compose.yml.j2 wires the role's
volumes. templates/config.user.inc.php.j2, handed over as
PMA_USER_CONFIG_BASE64, makes the theme the default and appends the
configured title to every window title; templates/design.js.j2 points
the favicon at the generated one. The emptied role stylesheet templates/style.css.j2
goes, the theme replaces it.
files/playwright/test-design.js checks that the theme is active, the
status colors of highlighted SQL in both modes, tokens, page,
navigation, results, cards and primary action, the focus stops of the
breadcrumb bar, logo, favicon and title, and captures the gallery.
README.md links the gallery; TODO.md records the warning about the
missing configuration storage.
Verified green on the compose stack (9 passed); only README.md changed
after that run.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
`personas/utils/interaction.js` states that every persona scenario must
drive a real role-specific interaction and that the module "deliberately
refuses to provide" a generic fallback, because a generic "click any visible
link" assertion tests nothing role-specific. All 47 roles carrying an
`adminInteraction` had reimplemented exactly that fallback: a locator whose
alternation included surfaces any signed-in user reaches, a guard that
skipped the whole body when nothing matched, a click whose failure was
swallowed, and a body assertion whose alternation included the bare product
name, which also matches that product's own 404 page. A guest-level account
passed every one of them.
Six roles are fixed here. The guard gives way to a strict `toBeVisible` on a
link only an administrator is served, the click is allowed to throw, and the
locator keeps only admin-only entries: `projects|groups` leave GitLab's,
`campaigns|subscribers|lists` leave Listmonk's, `databases|sql|export` leave
phpMyAdmin's.
The second assertion no longer reads page copy. Each one now checks the URL
the click reached, which is locale-independent and survives the heading
renames that upstream ships between minors. That splits the two questions
cleanly: the visible link proves the rights, the URL proves the navigation.
Listmonk asserts only that it stayed inside `/admin/`, because naming a
specific subpage there would trade one guess for another.
Two roles needed more than the uniform shape. EspoCRM keeps its
Administration entry in a Bootstrap dropdown at `display:none`, which
`getByRole` skips, so the callback opens `#nav-menu-dropdown` first;
without it a strict assertion fails for a reason unrelated to admin rights.
Mastodon renders the entry with `target="_target"`, so the dashboard opens
in a second tab and the old assertion was passing against the untouched
timeline; the callback now captures that tab and asserts there.
The other 41 roles are left alone on purpose. `runAdminFlow` returns at its
first two guards, so a callback behind `PERSONA_ADMINISTRATOR_BLOCKED=true`
or a template without `APP_BASE_URL` never executes: 36 roles block the
persona unconditionally. Writing a strict assertion into code nothing runs
is worse than the vacuous one it replaces.
That survey turned up three roles where the persona signs in without being
an administrator, which is a deployment question rather than a test one:
mobilizon provisions no admin yet runs the callback in its sso variants,
port-ui has no admin tier at all, and GitLab CE cannot map an OIDC group to
admin. GitLab's sharpened callback is held back until that is settled.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`"".endsWith(x)`, `x.includes("")` and `x.startsWith("")` are true for every
string. A spec that binds
const canonicalDomain = decodeDotenvQuotedValue(process.env.CANONICAL_DOMAIN || "");
and later asserts `url.includes(canonicalDomain)` therefore stops testing
anything the moment the deploy does not write that key: the assertion passes,
the job is green, and the missing value never surfaces.
The repository already refuses the list-shaped half of this. `decodeDotenvJsonList`
throws rather than return `[]` because an empty list "would pass every assertion
that iterates it". `requireDotenvValue` is the scalar counterpart and throws
while the module loads.
43 bindings across 43 files fed a matcher this way, in exactly two shapes:
`decodeDotenvQuotedValue(ENV || "")` forty times and `normalizeBaseUrl(ENV || "")`
three times. The wrapper is kept where it does work, so the URL normalisation
survives and only the core is replaced. 38 `decodeDotenvQuotedValue` imports fell
out of use and are removed; eslint reporting no unused binding is what confirms
that.
`|| ""` itself is not the defect and is not banned: it appears 400 times, and
most of those values are compared with `===`, where empty simply is not equal,
or flow into `normalizeBaseUrl`, which tolerates it. The lint pairs the empty
default with the matcher and reports only that combination, which is why the set
is 43 and not 400.
xwiki carries the instance this started from. Its OIDC spec asserted that the
IdP host ends with the last two labels of the XWiki host, so under a three-label
domain it checked `infinito.test` and would have accepted any foreign host in
the parent zone. It now checks `DOMAIN_PRIMARY`, exported for the purpose.
Verified by running it: node --check on all 48 files, eslint 0 errors,
`make lint-playwright` parses 89 specs. That last one is the load-bearing
evidence, because `requireDotenvValue` throws at module load and ce1a19d3c2 hit
exactly that wall on seaweedfs this morning; it holds here because the lint
harness stubs an unmatched key as the non-empty string "stub". The rule was also
watched failing: restoring one binding reports
`test-baseline.js:21: .includes(canonicalDomain)`.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Every script a role ships now lives under `files/<language>/`, and the unit
suite is split the same way: `tests/unit/python/` beside new sibling trees for
the other languages. `tests/lint/filesystem/test_role_files_layout.py` keeps it
that way; directories whose shape is dictated from outside carry a `.nocheck`
naming the constraint (Docker build contexts, WordPress mu-plugins, the Joomla
extension, Odoo addons, Playwright suites, the `files/test/test.sh` harness
that `test-e2e-cli` resolves generically).
This cannot be applied in halves. Moving a file and repointing what names it
are the same change: 14 references resolve only at deploy time, so the tree is
green either before or after, never between.
Those 14 were found by static resolution over every reference class, not by the
test suite -- a full `make quality-high` was green while all of them were
broken:
* 7 `src:` values built from a role variable holding a bare filename
(svc-bkp-remote-2-local, decidim, espocrm, friendica, joomla, pixelfed x2).
The variable doubles as the destination name inside the container, so the
language segment belongs at the call site, not in the variable.
* `sys-service/tasks/04_base.yml` resolved every consumer's systemd script
through `first_found(..., errors='strict')` over `files/script.{sh,py}`.
18 roles ship exactly that and have no template fallback: the play would
have died on each.
* `sys-front-inj-javascript` fell back to `<role>/files/javascript.js`; the
interface now reads `files/javascript/javascript.js`.
* `sys-front-inj-logout/templates/head_sub.j2` built the cache-busting mtime
path through `path_absolute(... 'files', ...)`.
* 4 `ansible.builtin.script:` invocations naming a bare command
(pull.py, prune.sh, set_postgres_superuser_password.sh, ganesha-serve.sh).
* `dev-python/files/shell/install.sh` pointed at a sibling role's script.
Depth-dependent paths inside the moved trees were bumped accordingly: 59
`parents[N]` computations, 12 relative climbs, and the per-role recover CLI,
whose path `cli/administration/recover/recoverers.py` still assembled from the
pre-move location.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Playwright declares the timeout option on locator.isVisible() and isHidden() as deprecated and ignored: both return immediately and never wait. Passing resolveTimeout(10_000) to one therefore changes nothing at runtime and only tells the reader a wait happened that never did. That reading is what let 7538b8a0b conclude two genuine call sites were fine, and what hid the false negative b97cf8888 had to fix.
Sixty call sites across fifty-eight role-local specs lose the argument and nothing else. Every added line in this commit is a bare isVisible(); a grep for added lines that are not one returns zero, so a behaviour change cannot have entered here. Files whose diff also alters waiting semantics are deliberately not part of this commit.
A repository lint added in b97cf8888 keeps the construct out. It matches isVisible and isHidden only, because isChecked, isDisabled, isEditable and isEnabled take a real timeout.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Over Tor the redirect chain behind a login/logout/OIDC click routinely exceeds Playwright's fixed 30s action timeout, so the click throws before the flow's scaled waits run. Sweep all role Playwright suites and the shared persona helpers: give every navigation/auth-transition click an onion-scaled timeout (.click({ timeout: resolveTimeout(30_000) })) and route the remaining raw millisecond literals (timeout options, waitForTimeout, sleep-promise setTimeout, positional wait args) through resolveTimeout. Local UI clicks (menus, toggles, modal dismissals, DOM clicks inside evaluate) stay untouched.
Two new lints keep it that way: test_no_raw_timeout_literals forbids raw numeric timeout literals in Playwright specs (opt-out: nocheck: raw-timeout), test_persona_clicks_scaled requires every click in the shared persona auth flows to carry a resolveTimeout timeout (opt-out: nocheck: unscaled-click).
Verified: node --check on all 133 changed JS files, all 13 playwright lints green, make autoformat clean, make test green (2745+196+163+4 tests OK).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New lint test_no_raw_goto.py forbids raw `page.goto(...)` in role playwright specs + persona flows (the gotoOnion wrapper in personas/utils is exempt) so navigation retries transient Tor-transport errors over onion. Migrates every raw call across ~75 roles (343 sites) to `gotoOnion(page, ...)` and teaches gotoOnion to detect relative onion URLs (`isOnionCanonical`). gotoOnion is a behaviour-identical drop-in on clearnet (single attempt, same return). Verified: no-raw-goto lint green, eslint 0 errors, make test green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add the global TIMEOUT_FACTOR and a shared timeouts.js helper: resolveTimeout(base) scales by TIMEOUT_FACTOR and, over a .onion target, an extra multiplier, so Tor's per-request latency no longer trips hard-coded timeouts. Migrate every raw timeout in the specs (timeout:/timeout=/setTimeout/waitForTimeout) to resolveTimeout, stage the helper in all three staging paths, and add test_no_raw_timeouts to forbid raw numeric timeouts. Clearnet behaviour is unchanged (factor 1: resolveTimeout(N) === N).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
HSTS (Strict-Transport-Security) is an HTTPS-only header: a browser ignores it
over plain http (RFC 6797) and OpenResty only emits it on the TLS vhost. On an
onion node TLS is off and every domain is served over http, so the inline
`expect(headers["strict-transport-security"]).toBeTruthy()` in 33 specs failed
with `Received: undefined`.
Route all 33 through the shared expectHstsWhenTls(headers, baseUrl, label)
helper (personas/utils/tls.js), which requires HSTS over https and asserts its
absence over http. On a TLS node the base URL is https, so the assertion is
identical to before; on an onion node the same spec now passes. HSTS logic
lives in one place (SPOT) instead of 34 inline copies.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>