diff --git a/x-pack/test/security_solution_endpoint/apps/integrations/endpoint_exceptions.ts b/x-pack/test/security_solution_endpoint/apps/integrations/endpoint_exceptions.ts index 4b6afb9c6b1c7..eac635ac958eb 100644 --- a/x-pack/test/security_solution_endpoint/apps/integrations/endpoint_exceptions.ts +++ b/x-pack/test/security_solution_endpoint/apps/integrations/endpoint_exceptions.ts @@ -155,7 +155,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await deleteEndpointExceptions(); - clearPrefilledEntries = async () => { + clearPrefilledEntries = retryOnStale.wrap(async () => { const entriesContainer = await testSubjects.find('exceptionEntriesContainer'); let deleteButtons: WebElementWrapper[]; @@ -167,7 +167,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await deleteButtons[0].click(); } while (deleteButtons.length > 1); - }; + }); }); it('should add `event.module=endpoint` to entry if only wildcard operator is present', async () => {