-
Notifications
You must be signed in to change notification settings - Fork 894
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
[BUG][Fuctional Test] Make setDefaultAbsoluteRange more robust and update doc views tests #5242
Conversation
@@ -43,7 +43,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide | |||
}); | |||
|
|||
it('should show custom doc views', async () => { | |||
await testSubjects.click('docTableExpandToggleColumn'); | |||
await testSubjects.click('docTableExpandToggleColumn-0'); |
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.
+1, yeah looks like we added an index which imo is better for more consistent tests.
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.
yeah we have to. since we adopt data grid, we have docTableExpandToggleColumn-[row index]
now.
How come the delay and retry add? It seem in previous iterations to be pretty consistent, is something to do with rendering in the doc views? I think if the tests are catching broken behavior then probably would rather log the issue rather than build into the testing system to handle the regression. |
Codecov Report
@@ Coverage Diff @@
## main #5242 +/- ##
==========================================
+ Coverage 66.77% 66.91% +0.13%
==========================================
Files 3284 2574 -710
Lines 63092 48359 -14733
Branches 10048 8674 -1374
==========================================
- Hits 42132 32359 -9773
+ Misses 18487 13889 -4598
+ Partials 2473 2111 -362
Flags with carried forward coverage won't be shown. Click here to find out more. |
I haven't looked into very deep on this. There are couple of issues of this setup time.
issue.mov
I think you post a very good question. Not sure why 2.11 starts to have this issue. We could open a research issue for deeper dive while unblock CI for now. |
likely this should have impact on all the functional tests correct since the time picker isn't unique to the failing plugin functional tests? if the goal to unblock I'd rather comment out these test files in the config and create an issue otherwise I think if the date having this automatic retry could obscure test results in the future if there is a consistent issue with focus being toggled off |
…date doc views tests * add a helper function setInputValueWithRetry for setAbsoluteRange to retry time range setup * update doc_views test to click docTableExpandToggleColumn-0 * update doc_views_link to check new tab Issue Resolve opensearch-project#5241 Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Signed-off-by: Anan Zhuang <ananzh@amazon.com>
…date doc views tests (#5242) * [BUG][Fuctional Test] Make setDefaultAbsoluteRange more robust and update doc views tests * fix PR comment by making a special time picker method for discover * update doc_views test to click docTableExpandToggleColumn-0 * update doc_views_link to check new tab Issue Resolve #5241 --------- Signed-off-by: Anan Zhuang <ananzh@amazon.com> (cherry picked from commit d6345f3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…date doc views tests (#5242) * [BUG][Fuctional Test] Make setDefaultAbsoluteRange more robust and update doc views tests * fix PR comment by making a special time picker method for discover * update doc_views test to click docTableExpandToggleColumn-0 * update doc_views_link to check new tab Issue Resolve #5241 --------- Signed-off-by: Anan Zhuang <ananzh@amazon.com> (cherry picked from commit d6345f3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…date doc views tests (#5242) (#5256) * [BUG][Fuctional Test] Make setDefaultAbsoluteRange more robust and update doc views tests * fix PR comment by making a special time picker method for discover * update doc_views test to click docTableExpandToggleColumn-0 * update doc_views_link to check new tab Issue Resolve #5241 --------- Signed-off-by: Anan Zhuang <ananzh@amazon.com> (cherry picked from commit d6345f3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…date doc views tests (#5242) (#5255) * [BUG][Fuctional Test] Make setDefaultAbsoluteRange more robust and update doc views tests * fix PR comment by making a special time picker method for discover * update doc_views test to click docTableExpandToggleColumn-0 * update doc_views_link to check new tab Issue Resolve #5241 --------- Signed-off-by: Anan Zhuang <ananzh@amazon.com> (cherry picked from commit d6345f3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Issue Resolve
#5241
Screenshot
test_suites/doc_views
after-fix-doc-views.mov
test_suites/doc_views_links
after-fix-doc-views-links.mov
Check List
yarn test:jest
yarn test:jest_integration