Skip to content

Commit

Permalink
Fix test regression in fhir user management
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Jan 25, 2024
1 parent 52d42c0 commit 2c5297d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import userEvents from '@testing-library/user-event';
import { URL_USER, URL_USER_CREDENTIALS, UserCredentials } from '@opensrp/user-management';
import { practitioner, userFixtures, group } from './fixtures';
import fetch from 'jest-fetch-mock';
import { practitionerResourceType, practitionerRoleResourceType } from '../../../../constants';
import { practitionerResourceType, practitionerRoleResourceType, USER_DETAILS_URL } from '../../../../constants';
import flushPromises from 'flush-promises';
import { practitionerRoleBundle } from '../../../CreateEditUser/tests/fixtures';
import { RoleContext } from '@opensrp/rbac';
Expand Down Expand Up @@ -332,5 +332,5 @@ test('View details navigates correctly', async () => {
</span>
`);
fireEvent.click(viewDetailsLink);
expect(history.location.pathname).toEqual(`${URL_USER}/081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0`);
expect(history.location.pathname).toEqual(`${USER_DETAILS_URL}/081724e8-5fc1-47dd-8d0c-fa0c6ae6ddf0`);
});
2 changes: 1 addition & 1 deletion packages/fhir-keycloak-user-management/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export const keycloakGroupEndpoint = 'groups';
export const keycloakMembersEndpoint = 'members';

// router urls
export const USER_DETAILS_URL = `${URL_USER}/details/:id`;
export const USER_DETAILS_URL = `${URL_USER}/details`;

0 comments on commit 2c5297d

Please sign in to comment.