From 368c18bb4dddb9c08d7570bcdd6150315cedd18f Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Wed, 19 Mar 2025 11:33:44 +0100 Subject: [PATCH] [scout] remove perf stats validation --- .../ui_tests/tests/discover_cdp_perf.spec.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/discover_cdp_perf.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/discover_cdp_perf.spec.ts index 4dafd8bdab84b..e03d1c74e587d 100644 --- a/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/discover_cdp_perf.spec.ts +++ b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/discover_cdp_perf.spec.ts @@ -95,6 +95,7 @@ test.describe( page, pageObjects, perfTracker, + log, }) => { const beforeMetrics = await perfTracker.capturePagePerformanceMetrics(cdp); @@ -113,18 +114,7 @@ test.describe( afterMetrics ); - expect( - perfStats.cpuTime.diff, - 'CPU time (seconds) usage during page navigation should not exceed 2 seconds' - ).toBeLessThan(2); - expect( - perfStats.scriptTime.diff, - 'Additional time spent executing JS scripts should not exceed 0.5 second' - ).toBeLessThan(0.5); - expect( - perfStats.layoutTime.diff, - 'Total layout computation time should not exceed 0.1 second' - ).toBeLessThan(0.06); + log.info(`Performance Metrics for Discover app: ${JSON.stringify(perfStats, null, 2)}`); }); } );