Skip to content

Commit

Permalink
Optimize the condition check
Browse files Browse the repository at this point in the history
Signed-off-by: Kapian1234 <[email protected]>
  • Loading branch information
Kapian1234 authored and SuZhou-Joe committed Nov 18, 2024
1 parent e7214c6 commit a06f04b
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,24 +170,24 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
});
}

if (MDSEnabled) {
it('should correctly display the summary card', () => {
inputWorkspaceName(workspaceName);
cy.getElementByTestId(
'workspaceForm-workspaceDetails-descriptionInputText'
).type('test_workspace_description.+~!');
cy.getElementByTestId('workspaceUseCase-essentials').click({
force: true,
});
inputDataSourceWhenMDSEnabled(dataSourceTitle);
cy.get('.workspaceCreateRightSidebar').within(() => {
cy.contains(workspaceName).should('exist');
cy.contains('test_workspace_description.+~!').should('exist');
cy.contains('Essentials').should('exist');
it('should correctly display the summary card', () => {
inputWorkspaceName(workspaceName);
cy.getElementByTestId(
'workspaceForm-workspaceDetails-descriptionInputText'
).type('test_workspace_description.+~!');
cy.getElementByTestId('workspaceUseCase-essentials').click({
force: true,
});
inputDataSourceWhenMDSEnabled(dataSourceTitle);
cy.get('.workspaceCreateRightSidebar').within(() => {
cy.contains(workspaceName).should('exist');
cy.contains('test_workspace_description.+~!').should('exist');
cy.contains('Essentials').should('exist');
if (MDSEnabled) {
cy.contains(dataSourceTitle).should('exist');
});
}
});
}
});
});

describe('Validate workspace name and description', () => {
Expand Down

0 comments on commit a06f04b

Please sign in to comment.