diff --git a/x-pack/test/performance/services/performance.ts b/x-pack/test/performance/services/performance.ts index ffe7211c63153..63c6b942528ea 100644 --- a/x-pack/test/performance/services/performance.ts +++ b/x-pack/test/performance/services/performance.ts @@ -166,6 +166,8 @@ export class PerformanceTestingService extends FtrService { private async tearDown(page: Page, client: CDPSession, context: BrowserContext) { if (page) { + // Journey is delayed to finish to guarantee all events reported properly to APM. + await page.waitForTimeout(5000); apm.flush(); await client.detach(); await page.close();