Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test cases for workspace creation #1635

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Kapian1234
Copy link

@Kapian1234 Kapian1234 commented Nov 11, 2024

Description

  1. Create a workspace from home page
  2. Jump to collaborators page after creating a workspace.
  3. The card on the right summarizes the information.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

.closest('.euiCheckableCard-isChecked')
.should('exist');

miscUtils.visitPage('app/workspace_initial');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need to visit initial page twice?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to check if both these buttons could navigate to the create page
Screenshot 2024-11-13 at 11 39 40

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the workspace create integration test should cover this part. But it's OK. We can keep this.

});
});

it('should successfully jump to collaborators page after creating a workspace', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer adding SECURITY_ENABLED and SAVED_OBJECTS_PERMISSION_ENABLED check before this test case.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

cy.contains(workspaceName).should('exist');
cy.contains('test_workspace_description.+~!').should('exist');
cy.contains('Essentials').should('exist');
cy.contains(dataSourceTitle).should('exist');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add MDSEnabled check here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

});
}

if (MDSEnabled) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this MDSEnabled check to line 187. We should test the summary card display for name and description if MDS not enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants