-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Uptime] Fix overview flaky tests #99781
[Uptime] Fix overview flaky tests #99781
Conversation
Pinging @elastic/uptime (Team:uptime) |
@@ -68,7 +69,9 @@ export function TimePickerProvider({ getService, getPageObjects }: FtrProviderCo | |||
} | |||
|
|||
private async getTimePickerPanel() { | |||
return await find.byCssSelector('div.euiPopover__panel-isOpen'); | |||
return await retry.try(async () => { |
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.
@justinkambic findByCssSelector also takes a timeout, is that correct? Perhaps I should be using that instead of retry.try
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.
It does take a timeout parameter. If you can achieve the same level of stability while removing the retry
wrap with just a timeout then it's probably worth simplifying.
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.
This all looks fine - is the test in question not skipped right now in master
?
Also, will this actually fix #98412, or will the backport to 7.13
cover that? We should probably wait to close that issue until the change is actually merged.
And we can close out #97558 and merge to 7.12
, I don't know that there will be another patch release for that minor or not.
@@ -68,7 +69,9 @@ export function TimePickerProvider({ getService, getPageObjects }: FtrProviderCo | |||
} | |||
|
|||
private async getTimePickerPanel() { | |||
return await find.byCssSelector('div.euiPopover__panel-isOpen'); | |||
return await retry.try(async () => { |
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.
It does take a timeout parameter. If you can achieve the same level of stability while removing the retry
wrap with just a timeout then it's probably worth simplifying.
@elasticmachine merge upstream |
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.
LGTM
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Unknown metric groupsReferences to deprecated APIs
History
To update your PR or re-run it, just comment with: |
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]>
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]>
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]>
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Dominique Clarke <[email protected]>
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Dominique Clarke <[email protected]>
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Dominique Clarke <[email protected]>
* add retry logic and add describe.only to prepare for flaky test runner Co-authored-by: Kibana Machine <[email protected]>
Summary
Fixes #57737
Relates to #97558
Relates to #98412
Fixes a series of flaky functional tests that were failing on finding the datepicker popover.