Skip to content

Commit 6d11050

Browse files
committed
test(FR-2504): add E2E tests for RBAC role management
1 parent c6ba054 commit 6d11050

4 files changed

Lines changed: 1526 additions & 2 deletions

File tree

e2e/E2E_COVERAGE_REPORT.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# E2E Test Coverage Report
22

3-
> **Last Updated:** 2026-04-01
3+
> **Last Updated:** 2026-04-09
44
> **Router Source:** [`react/src/routes.tsx`](../react/src/routes.tsx)
55
> **E2E Root:** [`e2e/`](.)
66
>
@@ -45,7 +45,8 @@
4545
| App Launcher | (modal) | 18 | 10 | 🔶 56% |
4646
| Chat | `/chat/:id?` | 6 | 6 | ✅ 100% |
4747
| Plugin System | (config-based) | 12 | 12 | ✅ 100% |
48-
| **Total** | | **335** | **181** | **54%** |
48+
| RBAC Management | `/rbac` | 22 | 21 | 🔶 95% |
49+
| **Total** | | **357** | **202** | **57%** |
4950

5051
---
5152

@@ -910,6 +911,39 @@
910911

911912
---
912913

914+
### 28. RBAC Management (`/rbac`)
915+
916+
**Test files:** [`e2e/rbac/rbac-role-list.spec.ts`](rbac/rbac-role-list.spec.ts), [`e2e/rbac/rbac-role-crud.spec.ts`](rbac/rbac-role-crud.spec.ts), [`e2e/rbac/rbac-role-detail.spec.ts`](rbac/rbac-role-detail.spec.ts)
917+
918+
| Feature | Status | Test |
919+
|---------|--------|------|
920+
| Display RBAC management page with role list table || `Superadmin can view the RBAC management page with role list table` |
921+
| Switch between Active/Inactive role filters || `Superadmin can switch to Inactive roles filter and back to Active` |
922+
| Search for a role by name using property filter || `Superadmin can search for a role by name using the property filter` |
923+
| Filter roles by Source (SYSTEM or CUSTOM) | 🚧 | `Superadmin can filter roles by Source (SYSTEM or CUSTOM)` |
924+
| Empty state when no roles match search || `Superadmin sees empty state message when no roles match the search` |
925+
| Sort role list by Role Name column || `Superadmin can sort role list by Role Name column` |
926+
| Refresh role list using refresh button || `Superadmin can refresh the role list using the refresh button` |
927+
| Create a new custom role with name and description || `Superadmin can create a new custom role with name and description` |
928+
| Edit a custom role name and description via drawer || `Superadmin can edit a custom role name and description via drawer` |
929+
| System role edit button absent || `Superadmin cannot edit a system role name or description (edit button absent)` |
930+
| Deactivate (soft-delete) an active custom role || `Superadmin can delete (soft-delete) an active custom role` |
931+
| Activate (restore) a soft-deleted role || `Superadmin can activate (restore) a soft-deleted role` |
932+
| Purge (hard-delete) a soft-deleted role || `Superadmin can purge (hard-delete) a soft-deleted role` |
933+
| Open role detail drawer by clicking role name || `Superadmin can open the role detail drawer by clicking a role name` |
934+
| Drawer shows Role Assignments and Permissions tabs || `Drawer shows "Role Assignments" and "Permissions" tabs` |
935+
| Close role detail drawer || `Superadmin can close the role detail drawer` |
936+
| Add a permission to a role || `Superadmin can add a permission to a role` |
937+
| Delete a permission from a role || `Superadmin can delete a permission from a role` |
938+
| Empty state in Permissions tab || `Superadmin sees empty state in Permissions tab when role has no permissions` |
939+
| Assign a user to a role || `Superadmin can assign a user to a role` |
940+
| Revoke a user from a role || `Superadmin can revoke a single user from a role` |
941+
| Empty state in Role Assignments tab || `Superadmin sees empty state in Role Assignments tab when role has no users` |
942+
943+
**Coverage: 🔶 21/22 features**
944+
945+
---
946+
913947
## Visual Regression Tests
914948

915949
Visual regression tests exist for most pages but only capture screenshots, not functional behavior.

0 commit comments

Comments
 (0)