diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx index 53f973e7f9335..1fd452f66c9f2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx @@ -60,10 +60,10 @@ describe('When on the host isolation exceptions page', () => { it('should search using expected exception item fields', async () => { const expectedFilterString = parseQueryFilterToKQL('fooFooFoo', SEARCHABLE_FIELDS); const { renderResult, apiMocks, user } = prepareTest(); - const { findAllByTestId } = renderResult; + const { getAllByTestId } = renderResult; - await waitFor(async () => { - expect(await findAllByTestId(`${pageTestId}-card`)).toHaveLength(10); + await waitFor(() => { + expect(getAllByTestId(`${pageTestId}-card`)).toHaveLength(10); }); apiMocks.responseProvider.exceptionsFind.mockClear();