-
Notifications
You must be signed in to change notification settings - Fork 115
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
[MD] functional test for datasource creation page #316
[MD] functional test for datasource creation page #316
Conversation
check my comment on this PR #314 (comment) Could you sync up with @mpabba3003 to see who can create the feature flag first? |
Sure! Will do. |
Will this PR depends on opensearch-project/OpenSearch-Dashboards#2501? |
Yes, will modify the tests after PR merge into main. |
...oards/vanilla-opensearch-dashboards/datasource-management-plugin/1_create_datasource.spec.js
Outdated
Show resolved
Hide resolved
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.
Excellent job figuring out the configuration override. Can we provide more descriptive messages in describe()
instead of adding comments to test cases?
cypress.json
Outdated
"VISBUILDER_ENABLED": false | ||
"VISBUILDER_ENABLED": false, | ||
"DATASOURCE_MANAGEMENT_ENABLED": false, | ||
"OSD_TEST_DOMAIN_ENDPOINT_URL": "https://test", |
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.
do we really need the endpoint as constant in cypress.json? I would prefer either use github secret if it's actual endpoint or constant string in test cases
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.
In my local, I used environment variable to define the URL and the current OSD_TEST_DOMAIN_ENDPOINT_URL
is a dummy url. We will create an official test domain later and use github secret then.
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.
Interesting problem! I am ok to move forward for now.
We may need to brainstorm a bit how to support such when the tests run from our org's infra team https://github.com/opensearch-project/opensearch-build cc @seraphjiang @kavilla @CCongWang @kristenTian
I think the current description in describe is clear for each test case. The reason I add comments is that I want to make it more readable. The comments are same as messages in |
Could you check this comment to see if you can run the workflow against 2.4.0? |
Sure thing! Will do it. |
I raised a PR #335 against 2.x branch and the Bundle Snapshot based E2E Cypress tests workflow for core Dashboards" is successful against 2.4.0. Reference: https://github.com/opensearch-project/opensearch-dashboards-functional-test/actions/runs/3275360924/jobs/5390106545. Please ignore the one of cypress test case failed, I will fix it in my code. All other check pass. |
Is backport to 2.x needed? If yes, please add such label. See this example. #325 With this label, it will automatically create a new PR to backport after your current PR is merged. |
Added! |
Please sync from |
Done |
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.
You can git checkout those two files. Ideally they shall not show up in the diff.
Signed-off-by: Yibo Wang <yibow@amazon.com>
Signed-off-by: Yibo Wang <yibow@amazon.com>
Signed-off-by: Yibo Wang <yibow@amazon.com>
Signed-off-by: Yibo Wang <yibow@amazon.com>
Signed-off-by: Yibo Wang <yibow@amazon.com>
Solved. Now it should be ready to be merged. Thanks! |
* [MD] functional test for datasource creation page Signed-off-by: Yibo Wang <yibow@amazon.com> * Set up environment variables for endpoint url and username&password Signed-off-by: Yibo Wang <yibow@amazon.com> * Update functional test & add a feature flag Signed-off-by: Yibo Wang <yibow@amazon.com> * Resolved comments Signed-off-by: Yibo Wang <yibow@amazon.com> * Move url variable to constant.js & remove some comments in code Signed-off-by: Yibo Wang <yibow@amazon.com> Signed-off-by: Yibo Wang <yibow@amazon.com> (cherry picked from commit 7755b38)
…#316) * [MD] functional test for datasource creation page Signed-off-by: Yibo Wang <yibow@amazon.com> * Set up environment variables for endpoint url and username&password Signed-off-by: Yibo Wang <yibow@amazon.com> * Update functional test & add a feature flag Signed-off-by: Yibo Wang <yibow@amazon.com> * Resolved comments Signed-off-by: Yibo Wang <yibow@amazon.com> * Move url variable to constant.js & remove some comments in code Signed-off-by: Yibo Wang <yibow@amazon.com> Signed-off-by: Yibo Wang <yibow@amazon.com> Signed-off-by: Jakub Przybylski <jakub.przybylski@eliatra.com>
Signed-off-by: Yibo Wang yibow@amazon.com
Description
Functional test for datasource creation page
1_create_datasource.spec.copy.js.mp4
Issues Resolved
opensearch-project/OpenSearch-Dashboards#2576
#337
To do:
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.