Playwright E2E Framework: RBAC & Multi-Tenancy (Open Source) by Murilo FilhoPlaywright E2E Framework: RBAC & Multi-Tenancy (Open Source) by Murilo Filho

Playwright E2E Framework: RBAC & Multi-Tenancy (Open Source)

Portfolio project
Murilo Filho
Personal open-source project. A Playwright + TypeScript end-to-end framework covering UI, API, role-based access, multi-tenancy, network failures and accessibility. It runs against ShipDesk, a small multi-tenant shipment portal that ships in the same repo, so the suite is fully self-contained and deterministic.
82 test cases, 130 executions across Chromium, Firefox and a browserless API project. In CI they run in 2 parallel shards and merge into one HTML report, published to GitHub Pages on every run of main.
What it demonstrates
Page Object Model with accessible locators (getByRole, getByLabel), no CSS/XPath in specs
Typed fixtures with personas, page objects and API clients injected per test
Login once per role via API and reuse the storage state; UI login covered separately
Arrange via API, assert via UI for fast, precise test data
RBAC as a data-driven matrix, checked in the UI and enforced in the API
Tenant isolation: no leaks in search, direct links or API
Network control with page.route: 500s, dropped connections, slow APIs, mocked payloads, and a real race-condition test
Security-minded checks: XSS escaping, open redirect, tampered tokens, user enumeration
API contract tests with strict JSON Schemas and boundary-value analysis
axe-core WCAG 2.1 AA accessibility scans, including error states
CI with sharding, retries with traces, merged report on Pages and a nightly schedule

0 likes · 0 views · Nov 10, 2026

Open-source Playwright + TypeScript framework: UI, API, RBAC, tenant isolation, network failures and accessibility, with sharded CI and a live HTML report.

Tags