diff --git a/src/__tests__/HospitalRun.test.tsx b/src/__tests__/HospitalRun.test.tsx index c3b8bdb0bb..85f6df89c8 100644 --- a/src/__tests__/HospitalRun.test.tsx +++ b/src/__tests__/HospitalRun.test.tsx @@ -49,7 +49,7 @@ describe('HospitalRun', () => { const { store } = setup('/appointments', [Permissions.ReadAppointments]) expect( - screen.getByRole('button', { name: /scheduling.appointments.new/i }), + screen.getByRole('heading', { name: /scheduling\.appointments\.label/i }), ).toBeInTheDocument() expect(store.getActions()).toContainEqual(