From 788e7cb83eee1cd9da5b9535f3beeb307d2dc3a2 Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Sat, 23 Nov 2024 10:44:01 +0100 Subject: [PATCH] Stabilize inference endpoint svl search tests for MKI (#201492) ## Summary This PR stabilizes the inference endpoint serverless earch UI tests for MKI runs by waiting for loading to finish after refreshing the page. (cherry picked from commit 9a8ef27e5347cba13de2b21146ea0c7908c579de) --- .../functional/test_suites/search/inference_management.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/test_serverless/functional/test_suites/search/inference_management.ts b/x-pack/test_serverless/functional/test_suites/search/inference_management.ts index f820b9bb08085..5293655ef092f 100644 --- a/x-pack/test_serverless/functional/test_suites/search/inference_management.ts +++ b/x-pack/test_serverless/functional/test_suites/search/inference_management.ts @@ -16,6 +16,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { 'svlCommonPage', 'embeddedConsole', 'svlSearchInferenceManagementPage', + 'header', ]); const svlSearchNavigation = getService('svlSearchNavigation'); const browser = getService('browser'); @@ -66,6 +67,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { beforeEach(async () => { await ml.api.createInferenceEndpoint(endpoint, taskType, modelConfig); await browser.refresh(); + await pageObjects.header.waitUntilLoadingHasFinished(); }); after(async () => {