Skip to content

[M2.3f2] Browser acceptance for tenants and roles, with the defects it found - #190

Merged
samuelmbabhazi merged 1 commit into
mainfrom
feat/m2.3f2-browser-acceptance-2
Nov 7, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
feat/m2.3f2-browser-acceptance-2

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

What changed

tenant.browser.spec.ts, real production assets, API, PostgreSQL and Chromium (PLAN M2.3f2):

  • Another organization's URLs answer 404 on every screen and show none of its data.
  • Role changes apply on the next request, for membership, a project role, and their removal.
  • An application is validated and created in the browser under the CSP.
  • A second tab deploys and the first sees it through the live stream. This is the first automated test of that stream over real HTTP.
  • No WCAG A or AA violation on any workspace screen, and no uncaught error or CSP violation on any of them.
  • The audit export downloads under the CSP.
  • Scoped tokens from the picker work as real bearers, and a revoked project token gets 401.

Product defects this found, fixed here:

  • During a rate-limit wait, submit buttons stayed enabled and clicking them did nothing. They are now disabled on every form using MutationRunner.
  • Checkboxes were under the WCAG 2.5.8 minimum of 24px.
  • Row buttons on members and roles all had the same accessible name. They now name the person.

The browser suite had gone stale with CI off, and is repaired:

Harness:

  • The browser fixture now uses the restricted runtime role, as production does; tenant commands refuse a role that can bypass row security.
  • SHIPKEEP_DISPOSABLE_DATABASE_URL opts in to a database that is safe to wipe, where Docker is out of reach.

How it was tested

Full browser suite: 16 of 16 pass, on Chromium with a local PostgreSQL 18.4 rather than the pinned 17. After that run, a small simplification to the audit test's CSP check was verified by rerunning tenant.browser.spec.ts (8 of 8).

Not covered

  • Lighthouse, so the M2.6 score is still open. axe is a related but different check.
  • Server removal in a browser: it needs an enrolled node.
  • A deployment past queued: the fixture runs no worker, and there is no real Docker or server.

Security considerations

SHIPKEEP_DISPOSABLE_DATABASE_URL is read only by test code and only for isolated databases, and that database is wiped. Production code is unaffected apart from the UI fixes above.

Checklist

  • Browser tests pass locally
  • No new shell invocation, no new secret exposure path
  • No new state change
  • PLAN updated

@samuelmbabhazi
samuelmbabhazi merged commit ee67371 into main Nov 7, 2026
@samuelmbabhazi
samuelmbabhazi deleted the feat/m2.3f2-browser-acceptance-2 branch November 7, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant