diff --git a/x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts b/x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts index 501f4fec92bf5..97c6c06bc3225 100644 --- a/x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts +++ b/x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer_grid_in_dashboard.ts @@ -25,7 +25,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { describe(`with ${testData.suiteTitle}`, function () { after(async function () { - await ml.testResources.deleteSavedSearchByTitle(dashboardTitle); + await ml.testResources.deleteSavedSearchByTitle(savedSearchTitle); await ml.testResources.deleteDashboardByTitle(dashboardTitle); });