Skip to content

Commit

Permalink
[ML] Fix assertion in the Trained Model UI tests (#195566)
Browse files Browse the repository at this point in the history
## Summary

Removes assertions for success toast messages that were deleted in
#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
  • Loading branch information
darnautov authored Oct 9, 2024
1 parent 637d796 commit a406acb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions x-pack/test/functional/services/ml/trained_models_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,6 @@ export function TrainedModelsTableProvider(

await mlCommonUI.waitForRefreshButtonEnabled();

await mlCommonUI.assertLastToastHeader(
`Deployment for "${modelId}" has been started successfully.`
);
await this.waitForModelsToLoad();

await retry.tryForTime(
Expand All @@ -600,10 +597,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) {
Expand Down

0 comments on commit a406acb

Please sign in to comment.