diff --git a/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts b/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts index 315b8590a80d1..b7180fcefdc31 100644 --- a/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts +++ b/x-pack/test/functional/apps/ml/short_tests/model_management/model_list.ts @@ -477,8 +477,7 @@ export default function ({ getService }: FtrProviderContext) { await ml.navigation.navigateToTrainedModels(); }); - // FLAKY: https://github.com/elastic/kibana/issues/175443 - describe.skip('with imported models', function () { + describe('with imported models', function () { before(async () => { await ml.navigation.navigateToTrainedModels(); }); diff --git a/x-pack/test/functional/services/ml/trained_models_table.ts b/x-pack/test/functional/services/ml/trained_models_table.ts index b1a686b411c70..7470402503bfc 100644 --- a/x-pack/test/functional/services/ml/trained_models_table.ts +++ b/x-pack/test/functional/services/ml/trained_models_table.ts @@ -23,7 +23,7 @@ export interface TrainedModelRowData { export type MlTrainedModelsTable = ProvidedType; export function TrainedModelsTableProvider( - { getService }: FtrProviderContext, + { getPageObject, getService }: FtrProviderContext, mlCommonUI: MlCommonUI, trainedModelsActions: TrainedModelsActions ) { @@ -31,6 +31,7 @@ export function TrainedModelsTableProvider( const retry = getService('retry'); const find = getService('find'); const browser = getService('browser'); + const headerPage = getPageObject('header'); return new (class ModelsTable { public async parseModelsTable() { @@ -194,6 +195,7 @@ export function TrainedModelsTableProvider( } public async doesModelCollapsedActionsButtonExist(modelId: string): Promise { + await headerPage.waitUntilLoadingHasFinished(); return await testSubjects.exists(this.rowSelector(modelId, 'euiCollapsedItemActionsButton')); }