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 () => {