Skip to content

Commit

Permalink
fix logging events to console
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Jan 22, 2024
1 parent 0fcc3ba commit beb0b99
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/kbn-journeys/journey/journey_ftr_harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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;
}

Expand Down

0 comments on commit beb0b99

Please sign in to comment.