From 548897e200983010fb91b7006b000a64ab90ae06 Mon Sep 17 00:00:00 2001 From: Kapian1234 Date: Mon, 11 Nov 2024 12:20:39 +0800 Subject: [PATCH] Fix duplicate creation Signed-off-by: Kapian1234 --- .../workspace-plugin/mds_workspace_create.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_create.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_create.spec.js index 004dba1b9..afc2e52f0 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_create.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_create.spec.js @@ -93,6 +93,7 @@ if (Cypress.env('WORKSPACE_ENABLED')) { }); it('should successfully create a workspace from home page', () => { + cy.deleteWorkspaceByName(workspaceName); miscUtils.visitPage('app/workspace_initial'); cy.getElementByTestId( 'workspace-initial-card-createWorkspace-button' @@ -144,7 +145,8 @@ if (Cypress.env('WORKSPACE_ENABLED')) { }); }); - it('should successfully jump to collaborators page create a workspace after creating a workspace', () => { + it('should successfully jump to collaborators page after creating a workspace', () => { + cy.deleteWorkspaceByName(workspaceName); inputWorkspaceName(workspaceName); inputDataSourceWhenMDSEnabled(dataSourceTitle); cy.getElementByTestId('workspaceForm-bottomBar-createButton').click({ @@ -163,7 +165,7 @@ if (Cypress.env('WORKSPACE_ENABLED')) { }); }); - it('should correctly display create a workspace', () => { + it('should correctly display the summary card', () => { inputWorkspaceName(workspaceName); cy.getElementByTestId( 'workspaceForm-workspaceDetails-descriptionInputText'