From 018ed5e8e7e6ac4e53d3ac2a3954dccc58e5c8e1 Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Wed, 9 Oct 2024 14:24:31 +0200 Subject: [PATCH] [ML] Fix assertion in the Trained Model UI tests (#195566) ## Summary Removes assertions for success toast messages that were deleted in https://github.com/elastic/kibana/pull/194614 ### 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 (cherry picked from commit a406acba31ed05588ae21eed5d380722e32fbbb0) --- x-pack/test/functional/services/ml/trained_models_table.ts | 7 ------- 1 file changed, 7 deletions(-) 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 990ca6c1ed37a..d416bc570063e 100644 --- a/x-pack/test/functional/services/ml/trained_models_table.ts +++ b/x-pack/test/functional/services/ml/trained_models_table.ts @@ -584,9 +584,6 @@ export function TrainedModelsTableProvider( await mlCommonUI.waitForRefreshButtonEnabled(); - await mlCommonUI.assertLastToastHeader( - `Deployment for "${modelId}" has been started successfully.` - ); await this.waitForModelsToLoad(); await retry.tryForTime( @@ -612,10 +609,6 @@ export function TrainedModelsTableProvider( public async stopDeployment(modelId: string) { await this.clickStopDeploymentAction(modelId); await mlCommonUI.waitForRefreshButtonEnabled(); - await mlCommonUI.assertLastToastHeader( - `Deployment for "${modelId}" has been stopped successfully.` - ); - await mlCommonUI.waitForRefreshButtonEnabled(); } public async openStartDeploymentModal(modelId: string) {