diff --git a/cypress/utils/dashboards/workspace-plugin/test-cases/mds_workspace_copy.cases.js b/cypress/utils/dashboards/workspace-plugin/test-cases/mds_workspace_copy.cases.js index 39109d253..42dbbcb1b 100644 --- a/cypress/utils/dashboards/workspace-plugin/test-cases/mds_workspace_copy.cases.js +++ b/cypress/utils/dashboards/workspace-plugin/test-cases/mds_workspace_copy.cases.js @@ -94,7 +94,10 @@ export const WorkspaceCopyTestCases = () => { }); }; - if (Cypress.env('WORKSPACE_ENABLED')) { + if ( + Cypress.env('WORKSPACE_ENABLED') && + Cypress.env('DATASOURCE_MANAGEMENT_ENABLED') + ) { before(() => { cy.deleteAllWorkspaces(); cy.createDataSourceNoAuth({ title: dataSourceTitle1 }).then((result) => {