Skip to content

[8.11] [Dashboard navigation] Fix flaky test (#167896)#169573

Merged
kibanamachine merged 2 commits intoelastic:8.11from
kibanamachine:backport/8.11/pr-167896
Oct 23, 2023
Merged

[8.11] [Dashboard navigation] Fix flaky test (#167896)#169573
kibanamachine merged 2 commits intoelastic:8.11from
kibanamachine:backport/8.11/pr-167896

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.11:

Questions ?

Please refer to the Backport tool documentation

Fixes elastic#167713 and elastic#169276

## Summary

It appears the dashboard links were not ready (still loading) when the
test was trying to click on them. When they finish loading the element
was stale, triggering the StaleElement error. This PR calls the
RenderCompleteDispatcher on the Links embeddable when all of the child
components have finished loading.

In a future PR, we should consider re-factoring such that the async
dashboard fetching happens in the LinksComponent and the results are
passed as props to the DashboardLinkComponents. This would be more
React-like. I resisted making that change in this PR so that we can fix
the reporting error for v8.11.

## Flaky test runner 🤞
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3636

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 513a31f)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Oct 23, 2023
@kibanamachine kibanamachine enabled auto-merge (squash) October 23, 2023 19:34
@kibana-ci
Copy link

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #28 / visualize app - new charts library visualize "after all" hook in "visualize app - new charts library visualize"
  • [job] [logs] FTR Configs #28 / visualize app - new charts library visualize vertical bar chart should save and load

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
links 91 92 +1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
links 59 62 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
links 25.2KB 24.9KB -303.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
links 32.0KB 33.5KB +1.5KB
Unknown metric groups

API count

id before after diff
links 61 64 +3

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @nickpeihl

@kibanamachine kibanamachine merged commit 809fc58 into elastic:8.11 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants