From beb0b9933562f186a3448e462a96235a94a810ef Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Mon, 22 Jan 2024 14:29:41 +0100 Subject: [PATCH] fix logging events to console --- packages/kbn-journeys/journey/journey_ftr_harness.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/kbn-journeys/journey/journey_ftr_harness.ts b/packages/kbn-journeys/journey/journey_ftr_harness.ts index 552d3d3ee9184..77d960d99b169 100644 --- a/packages/kbn-journeys/journey/journey_ftr_harness.ts +++ b/packages/kbn-journeys/journey/journey_ftr_harness.ts @@ -443,9 +443,6 @@ export class JourneyFtrHarness { } private onConsoleEvent = async (message: playwright.ConsoleMessage) => { - // logging only events realted to performance metrics - const trackedEvents = ['performance_metric', 'Loaded Kibana']; - try { const { url, lineNumber, columnNumber } = message.location(); @@ -472,9 +469,9 @@ export class JourneyFtrHarness { if ( url.includes('core.entry.js') && args.length > 1 && - ![trackedEvents].includes(args[1]?.ebt_event?.event_type) + !('performance_metric' === args[1]?.ebt_event?.event_type) ) { - // ignore events like "click" + // ignore events like "click", log to console only 'event_type: performance_metric' return; }