AI Implementation feature(867): Admin Area Players Management (#56)

This commit was merged in pull request #56.
This commit is contained in:
2026-07-23 08:08:50 +00:00
parent 705530e71f
commit e4ccf0fe13
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();
});
});