diff --git a/components/AdminUserSettings/AdminUserSettings.test.tsx b/components/AdminUserSettings/AdminUserSettings.test.tsx index e2d4d0b3..6cf07921 100644 --- a/components/AdminUserSettings/AdminUserSettings.test.tsx +++ b/components/AdminUserSettings/AdminUserSettings.test.tsx @@ -66,7 +66,7 @@ describe('AdminUserSettings Component', () => { }); }); - it('should direct to /admin/edit-profile route when the edit profile button is clicked', () => { + it('should direct to /account/settings route when the edit profile button is clicked', () => { const adminUserSettings = screen.getByTestId('admin-user-settings'); fireEvent.click(adminUserSettings); @@ -77,7 +77,7 @@ describe('AdminUserSettings Component', () => { }); waitFor(() => { - expect(mockPush).toHaveBeenCalledWith('/user/edit'); + expect(mockPush).toHaveBeenCalledWith('/account/settings'); }); }); diff --git a/components/AdminUserSettings/AdminUserSettings.tsx b/components/AdminUserSettings/AdminUserSettings.tsx index 3f6ee208..3c8264c7 100644 --- a/components/AdminUserSettings/AdminUserSettings.tsx +++ b/components/AdminUserSettings/AdminUserSettings.tsx @@ -54,7 +54,7 @@ export const AdminUserSettings = (): JSX.Element => { Edit Profile