diff --git a/packages/fhir-location-management/src/components/AllLocationListFlat/tests/__snapshots__/index.test.tsx.snap b/packages/fhir-location-management/src/components/AllLocationListFlat/tests/__snapshots__/index.test.tsx.snap index 87ccb4465..62ee8533b 100644 --- a/packages/fhir-location-management/src/components/AllLocationListFlat/tests/__snapshots__/index.test.tsx.snap +++ b/packages/fhir-location-management/src/components/AllLocationListFlat/tests/__snapshots__/index.test.tsx.snap @@ -11,15 +11,3 @@ exports[`location-management/src/components/AllLocationListFlat Show data as exp exports[`location-management/src/components/AllLocationListFlat Show data as expected: table data 5`] = `"Edit"`; exports[`location-management/src/components/AllLocationListFlat Show data as expected: table header 1`] = `"NameParentPhysical TypeStatusActions"`; - -exports[`location-management/src/components/AllLocationListFlat sort and filters work: table data 1`] = `"Good Health Clinic"`; - -exports[`location-management/src/components/AllLocationListFlat sort and filters work: table data 2`] = `""`; - -exports[`location-management/src/components/AllLocationListFlat sort and filters work: table data 3`] = `"Building"`; - -exports[`location-management/src/components/AllLocationListFlat sort and filters work: table data 4`] = `"active"`; - -exports[`location-management/src/components/AllLocationListFlat sort and filters work: table data 5`] = `"Edit"`; - -exports[`location-management/src/components/AllLocationListFlat sort and filters work: table header 1`] = `"NameParentPhysical TypeStatusActions"`; diff --git a/packages/fhir-location-management/src/components/AllLocationListFlat/tests/index.test.tsx b/packages/fhir-location-management/src/components/AllLocationListFlat/tests/index.test.tsx index c63508bd2..8982af7b1 100644 --- a/packages/fhir-location-management/src/components/AllLocationListFlat/tests/index.test.tsx +++ b/packages/fhir-location-management/src/components/AllLocationListFlat/tests/index.test.tsx @@ -182,7 +182,7 @@ describe('location-management/src/components/AllLocationListFlat', () => { _include: 'Location:partof', _getpagesoffset: 0, _count: 20, - _sort: '-name', + _sort: 'name', }) .reply(200, flatLocations); const nameSorterCaretDown = document.querySelector( diff --git a/packages/fhir-location-management/src/components/EditLink/index.tsx b/packages/fhir-location-management/src/components/EditLink/index.tsx index 353091faa..b3a3c2b10 100644 --- a/packages/fhir-location-management/src/components/EditLink/index.tsx +++ b/packages/fhir-location-management/src/components/EditLink/index.tsx @@ -22,6 +22,7 @@ const EditLink: React.FC = (props) => { return ( { return element.getAttribute('href'); }); expect(editLinks).toEqual([ - '/admin/location/unit/edit/46bb8a3f-cf50-4cc2-b421-fe4f77c3e75d?back_to=%2Fprofile%2Fd9d7aa7b-7488-48e7-bae8-d8ac5bd09334', + '/admin/service-points/add-edit/46bb8a3f-cf50-4cc2-b421-fe4f77c3e75d?back_to=%2Fprofile%2Fd9d7aa7b-7488-48e7-bae8-d8ac5bd09334', ]); // validate search works. @@ -249,7 +249,7 @@ test('works correctly - physical location', async () => { // check records shown in table. let tableData = [...inventoryTab.querySelectorAll('table tbody tr')].map((tr) => tr.textContent); - expect(tableData).toEqual(['No data']); + expect(tableData).toEqual(['HealthEdit']); // switch to inactive tab const inactiveRadio = screen.getByRole('radio', { name: /Inactive/i });