-
Notifications
You must be signed in to change notification settings - Fork 113
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Kapian1234 <[email protected]>
.closest('.euiCheckableCard-isChecked') | ||
.should('exist'); | ||
|
||
miscUtils.visitPage('app/workspace_initial'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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', () => { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Signed-off-by: Kapian1234 <[email protected]>
}); | ||
} | ||
|
||
if (MDSEnabled) { |
There was a problem hiding this comment.
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.
Signed-off-by: Kapian1234 <[email protected]>
…ashboards-functional-test into workspace_create
Description
Issues Resolved
[List any issues this PR will resolve]
Check List
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.