diff --git a/x-pack/plugins/cases/public/components/case_view/components/case_view_files.test.tsx b/x-pack/plugins/cases/public/components/case_view/components/case_view_files.test.tsx index 66fe926d2754a..4f55c16dfce15 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/case_view_files.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/case_view_files.test.tsx @@ -40,8 +40,8 @@ describe('Case View Page files tab', () => { it('should render the utility bar for the files table', async () => { const result = appMockRender.render(); - expect(await result.findByTestId('cases-add-file')).toBeInTheDocument(); - expect(await result.findByTestId('case-detail-search-file')).toBeInTheDocument(); + expect((await result.findAllByTestId('cases-files-add')).length).toBe(2); + expect(await result.findByTestId('cases-files-search')).toBeInTheDocument(); }); it('should render the files table', async () => {