From 91810cd52965d6c43ac328c54ff6a02575e25abc Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Fri, 15 Nov 2024 11:02:57 +0800 Subject: [PATCH] feat: optimize based on comments Signed-off-by: SuZhou-Joe --- .../workspace-plugin/mds_workspace_assets.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 17d87a15c..465794a66 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,6 +54,16 @@ if (Cypress.env('WORKSPACE_ENABLED')) { }); after(() => { + cy.removeSampleDataForWorkspace( + 'ecommerce', + sourceWorkspaceId, + datasourceId + ); + cy.removeSampleDataForWorkspace( + 'ecommerce', + targetWorkspaceId, + datasourceId + ); cy.deleteWorkspaceByName(sourceWorkspaceName); cy.deleteWorkspaceByName(targetWorkspaceName); sourceWorkspaceId = ''; @@ -115,6 +125,7 @@ if (Cypress.env('WORKSPACE_ENABLED')) { ); }); + // TODO: this test case should be removed once index pattern access outside of workspace being blocked in the future. it('Should not show set as default button when outside workspace', () => { cy.request({ url: `${BASE_PATH}/api/opensearch-dashboards/management/saved_objects/_find?workspaces=${targetWorkspaceId}&page=1&type=index-pattern`,