From c0fb5caf67dff39dd9f38a4e529741679f48fdf8 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 23 Nov 2024 22:25:58 +1100 Subject: [PATCH] [8.17] Stabilize inference endpoint svl search tests for MKI (#201492) (#201495) # Backport This will backport the following commits from `main` to `8.17`: - [Stabilize inference endpoint svl search tests for MKI (#201492)](https://github.com/elastic/kibana/pull/201492) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Robert Oskamp --- .../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 () => {