diff --git a/src/pages/dataElements/List.spec.tsx b/src/pages/dataElements/List.spec.tsx index 44c41b1c..85cd0d8c 100644 --- a/src/pages/dataElements/List.spec.tsx +++ b/src/pages/dataElements/List.spec.tsx @@ -75,7 +75,7 @@ describe('Data Elements List', () => { const { id } = dataElementsMock.result[0] const firstRow = getByTestId(`section-list-row-${id}`) expect(firstRow).toHaveTextContent( - 'Accute Flaccid Paralysis (Deaths < 5 yrs)AggregateNumber6 years agoPublic can edit' + /Accute Flaccid Paralysis \(Deaths < 5 yrs\)AggregateNumber\d+ years agoPublic can edit/ ) }) it('should display all the columns', async () => {