From 0a4df54f6490c4aa72083b38fa2c1afdf2175450 Mon Sep 17 00:00:00 2001 From: Caue Marcondes Date: Tue, 24 Oct 2023 09:38:28 +0100 Subject: [PATCH] fixing test --- x-pack/plugins/observability/server/ui_settings.ts | 6 +++--- .../e2e/cypress/e2e/profiling_views/functions.cy.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/observability/server/ui_settings.ts b/x-pack/plugins/observability/server/ui_settings.ts index 134ad77046dbc..1facce3f09984 100644 --- a/x-pack/plugins/observability/server/ui_settings.ts +++ b/x-pack/plugins/observability/server/ui_settings.ts @@ -396,7 +396,7 @@ export const uiSettings: Record = { defaultMessage: `The average amortized per-core power consumption (based on 100% CPU utilization).`, }), schema: schema.number({ min: 0 }), - requiresPageReload: false, + requiresPageReload: true, }, [profilingDatacenterPUE]: { category: [observabilityFeatureId], @@ -425,7 +425,7 @@ export const uiSettings: Record = { }, }), schema: schema.number({ min: 0 }), - requiresPageReload: false, + requiresPageReload: true, }, [profilingCo2PerKWH]: { category: [observabilityFeatureId], @@ -448,7 +448,7 @@ export const uiSettings: Record = { }, }), schema: schema.number({ min: 0 }), - requiresPageReload: false, + requiresPageReload: true, }, }; diff --git a/x-pack/plugins/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts b/x-pack/plugins/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts index 8b0a66180c7a4..738f800756072 100644 --- a/x-pack/plugins/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts +++ b/x-pack/plugins/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts @@ -203,6 +203,10 @@ describe('Functions page', () => { .clear() .type('20'); cy.contains('Save changes').click(); + cy.getByTestSubj('kbnLoadingMessage').should('exist'); + cy.getByTestSubj('kbnLoadingMessage').should('not.exist', { + timeout: 50000, + }); cy.go('back'); cy.wait('@getTopNFunctions'); cy.get(firstRowSelector).eq(5).contains('24.22k lbs / 10.99k');