Fix Lens smokescreen flaky tests#78566
Conversation
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
@elasticmachine merge upstream |
wylieconlon
left a comment
There was a problem hiding this comment.
Can you explain why there was a race condition, and how this fixes it? The code change looks fine, but I'm still confused.
| await PageObjects.common.pressEnterKey(); | ||
| // Press Tab 2 twice instead of Enter to avoid race condition with the dropdown | ||
| await PageObjects.common.pressTabKey(); | ||
| await PageObjects.common.pressTabKey(); |
There was a problem hiding this comment.
I don't understand why this fixes the issue, what was the race condition? Can we fix that some other way?
There was a problem hiding this comment.
@dej611 Are you aware of the queryInput service which is used for dashboard tests? I think it might simplify this whole test.
There was a problem hiding this comment.
I've improved the comment here to explain the context of the bug.
Perhaps some other fix is possible, but the double Tab one is the most consistent from tests, as it safely closes the dropdown without auto-completing the query field.
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* master: Fix APM lodash imports (elastic#78438) Add deprecated message to tile_map and region_map visualizations. (elastic#77683) Fix Lens smokescreen flaky tests (elastic#78566) updated discover with alt text (elastic#77660) Fix types (elastic#78619) Update tutorial-visualizing.asciidoc (elastic#76977) Update tutorial-discovering.asciidoc (elastic#76976) [Search] Error notification alignment (elastic#77788) Update tutorial-define-index.asciidoc (elastic#76975) [Lens] Fieldless operations (elastic#78080) [Usage Collection] [schema] Explicit "array" definition (elastic#78141) Update tutorial-define-index.asciidoc (elastic#76973) Fix --no-basepath references in doc (elastic#78570) Move StubIndexPattern to data plugin and convert to TS. (elastic#78518) Index pattern class - remove unused methods (elastic#78538) [Security Solution] [ALL] Eliminates all console.error and console.warn from Jest output (elastic#78523) [Actions] avoids setting a default dedupKey on PagerDuty (elastic#77773) First stab at developer-focussed saved objects docs (elastic#71430) remove unnecessary config validations (elastic#78527)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
This PR addresses some race conditions in the test helper used for Filter operation in Lens.
It also refactors the
configureDimensionfunction to auto-close by default, but offering akeepOpenoption for special scenarios.Flaky test runner result
Fixes #77969
Checklist