From a7145d8bd54e2056b44754bb96943c17496d1a50 Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Fri, 15 Nov 2024 12:37:45 +0800 Subject: [PATCH] feat: update Signed-off-by: SuZhou-Joe --- .../workspace-plugin/mds_workspace_assets.spec.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js index 465794a66..e65a3bedd 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js @@ -54,16 +54,14 @@ if (Cypress.env('WORKSPACE_ENABLED')) { }); after(() => { + // Uninstallation will delete the data index + // and workspace deletion will remove all the saved objects within the workspace, + // so calling `removeSampleDataForWorkspace` once is good enough. cy.removeSampleDataForWorkspace( 'ecommerce', sourceWorkspaceId, datasourceId ); - cy.removeSampleDataForWorkspace( - 'ecommerce', - targetWorkspaceId, - datasourceId - ); cy.deleteWorkspaceByName(sourceWorkspaceName); cy.deleteWorkspaceByName(targetWorkspaceName); sourceWorkspaceId = '';