#104 Testing: Admin Panel E2E Tests with Selenium

open medium Created 2025-11-27 07:23 · Updated 2025-11-27 07:23

Description

Edit
Create E2E tests for Admin Panel UI using Selenium. Location: tests/e2e/test_admin_panel_e2e.py Test Scenarios: 1. User Management Flow: - Login as tenant_admin - Navigate to #/admin/users - Create new user via modal - Verify user appears in list - Edit user details - Suspend user - Delete user 2. Token Management Flow: - Navigate to #/admin/tokens - Generate new token - Verify token displayed (copy works) - Revoke token - Verify token removed from list 3. Invitation Flow: - Send invitation - Open invitation link (new session) - Complete registration - Verify user created with correct role 4. Audit Log Flow: - Perform actions - Navigate to audit logs - Verify actions logged - Test filters - Test export 5. Permission Tests: - Login as different roles - Verify correct menu visibility - Verify action buttons disabled/hidden Screenshot on failure for debugging. With ultra attention to details and correctness. Before closing: write comment summarizing implementation with screenshot.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...