From 74b4f05ba503e3499dbec9334913e3a9ccc08b10 Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Thu, 22 Feb 2024 11:54:35 +0100 Subject: [PATCH] [ML] Enable function tests for imported trained models (#177407) ## Summary Closes https://github.com/elastic/kibana/issues/175443 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --- .../apps/ml/short_tests/model_management/model_list.ts | 3 +-- x-pack/test/functional/services/ml/trained_models_table.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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 b05f55950214f..8f8e953ef536a 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 @@ -449,8 +449,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 4ea56286de4fd..0bddf191a8371 100644 --- a/x-pack/test/functional/services/ml/trained_models_table.ts +++ b/x-pack/test/functional/services/ml/trained_models_table.ts @@ -582,6 +582,7 @@ export function TrainedModelsTableProvider( await mlCommonUI.assertLastToastHeader( `Deployment for "${modelId}" has been stopped successfully.` ); + await mlCommonUI.waitForRefreshButtonEnabled(); } public async openStartDeploymentModal(modelId: string) {