diff --git a/frontend/src/__tests__/users.test.ts b/frontend/src/__tests__/users.test.ts index 1a28a2620..701f29492 100644 --- a/frontend/src/__tests__/users.test.ts +++ b/frontend/src/__tests__/users.test.ts @@ -2483,3 +2483,58 @@ describe('group assignment UX (issue #998)', () => { }); }); }); + +// ============================================================================ +// GROUP UNION HINT (issue #1001) +// ============================================================================ +describe('group union permission hint (issue #1001)', () => { + const mockUsers = [ + { id: '1', email: 'alice@test.com', groups: ['g1'], mfa_enabled: false }, + ]; + const mockGroups = [ + { id: 'g1', name: 'Admins', permissions: [], description: '', allowed_accounts: [] }, + { id: 'g2', name: 'Viewers', permissions: [], description: '', allowed_accounts: [] }, + ]; + + beforeEach(() => { + document.body.innerHTML = ` +
+ +