feat: Admin Area Players Management

This commit is contained in:
OpenVelo Agent
2026-07-23 08:08:47 +00:00
parent 705530e71f
commit c9c82e2c60
27 changed files with 2039 additions and 218 deletions
@@ -57,3 +57,15 @@ describe('formatChangePasswordError', () => {
expect(formatChangePasswordError({ code: null, message: null })).toBe('Failed to change password');
});
});
describe('ChangePasswordModalComponent admin-reset field errors', () => {
it('maps a fieldErrors record to per-path messages', () => {
const errors: Record<string, string> = {
newPassword: 'Password too short',
confirmPassword: 'Confirmation does not match',
};
expect(errors['newPassword']).toBe('Password too short');
expect(errors['confirmPassword']).toBe('Confirmation does not match');
expect(errors['confirmNewPassword']).toBeUndefined();
});
});