-
Notifications
You must be signed in to change notification settings - Fork 118
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
Cypress Integ test for dynamic multi-tenancy features #609
Cypress Integ test for dynamic multi-tenancy features #609
Conversation
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 does this tests have so many wait statements??
Here is an example test that achieves something similar without wait statements: https://github.com/opensearch-project/opensearch-dashboards-functional-test/blob/main/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/basic.spec.js
also refer to to this guide on how to write effective functional tests: https://github.com/opensearch-project/opensearch-dashboards-functional-test/blob/main/docs/writing_tests.md
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 Ashwin. I have updated my PR after following your suggestions.
b0c4f10
to
2f3d2d5
Compare
Team I have run the tests against my PR for Dashboards Security Plugin (https://github.com/opensearch-project/security-dashboards-plugin/pull/1394/files). Can you guys please review and merge this PR? |
@@ -87,6 +87,22 @@ declare namespace Cypress { | |||
header: string, | |||
): Chainable<S>; | |||
|
|||
|
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.
The comment header here is wrong
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.
Fixed. Thanks @ashwin-pc for pointing this out.
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
2f3d2d5
to
d2dbd28
Compare
Thanks @ashwin-pc and @CCongWang for reviewing this PR. |
Signed-off-by: Abhi Kalra <abhivka@amazon.com> Co-authored-by: Abhi Kalra <abhivka@amazon.com> (cherry picked from commit 7ec51ed)
Signed-off-by: Abhi Kalra <abhivka@amazon.com> Co-authored-by: Abhi Kalra <abhivka@amazon.com> (cherry picked from commit 7ec51ed)
…oject#609) (opensearch-project#659) Signed-off-by: Abhi Kalra <abhivka@amazon.com> Co-authored-by: Abhi Kalra <abhivka@amazon.com> (cherry picked from commit 7ec51ed) Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com> Signed-off-by: leanne.laceybyrne@eliatra.com <leanne.laceybyrne@eliatra.com>
Description
Adding cypress tests for dynamic tenancy feature (opensearch-project/security-dashboards-plugin#1394)
Issues Resolved
Writing cypress tests for: opensearch-project/security-dashboards-plugin#1394
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.
Video recording for multi_tenancy Test:
https://user-images.githubusercontent.com/99718513/231845323-d896c479-26b3-460d-9f01-2462d92d668b.mp4
Video recording for default_tenant Test:
default_tenant.js.mp4