Collect user_login and user_name in account admin UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alberto-AudrixandCursor committed 2026-09-08 16:30:14 +07:00
1 parent 92be5ee3d2
commit 7a562c18ec
4 files changed
+43 -11

No files matched your search

+6 -1
View File
@@ -26,6 +26,7 @@ const {
authState: {
user: {
id: 5,
user_login: 'gm.user',
user_name: 'gm.user',
status: 'gm' as string,
managed_by: null as number | null,
@@ -84,6 +85,7 @@ describe('SettingsPage city site registry', () => {
refreshUserMock.mockReset();
authState.user = {
id: 5,
user_login: 'gm.user',
user_name: 'gm.user',
status: 'gm',
managed_by: null,
@@ -127,11 +129,12 @@ describe('SettingsPage city site registry', () => {
updated_at: '',
});
buhsMock.mockResolvedValue([
{ id: 2, user_name: 'buh', status: 'buh', created_at: '', updated_at: '' },
{ id: 2, user_login: 'buh', user_name: 'buh', status: 'buh', created_at: '', updated_at: '' },
]);
usersListMock.mockResolvedValue([
{
id: 5,
user_login: 'gm',
user_name: 'gm',
status: 'gm',
managed_by: 2,
@@ -188,6 +191,7 @@ describe('SettingsPage city site registry', () => {
it('shows pending GM confirmation for BUH', async () => {
authState.user = {
id: 2,
user_login: 'buh',
user_name: 'buh',
status: 'buh',
managed_by: null,
@@ -200,6 +204,7 @@ describe('SettingsPage city site registry', () => {
pendingMock.mockResolvedValue([
{
id: 5,
user_login: 'gm.user',
user_name: 'gm.user',
status: 'gm',
created_at: '',