Skip to content

[9.4] Attempt to solve timeout issue when loading legacy visualizations dashboard (#271948)#271986

Merged
kibanamachine merged 2 commits into
elastic:9.4from
kibanamachine:backport/9.4/pr-271948
May 29, 2026
Merged

[9.4] Attempt to solve timeout issue when loading legacy visualizations dashboard (#271948)#271986
kibanamachine merged 2 commits into
elastic:9.4from
kibanamachine:backport/9.4/pr-271948

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…hboard (elastic#271948)

Closes elastic#271816

## Summary

### Theory

[elastic#271520](elastic#271520) exposed the
issue because it changed the timing of FTR’s first authenticated
navigation.

Before that PR, common.navigateToApp('dashboards') hit the login page,
filled the UI form, waited for Kibana chrome, then navigated to the app
URL again. That slower, multi-step flow gave the Dashboards app more
time to settle on #/list before the next call to
loadDashboardInEditMode().

After that PR, login is done by API and cookie injection.
loginIfPrompted() now injects the sid cookie and navigates directly to
the target app URL. That is faster and skips some of the old UI-login
waits. So the test reaches:

```
dashboard.initTests() -> dashboard.loadDashboardInEditMode() -> gotoDashboardLandingPage()
```

sooner, while the Dashboards route can still be settling.

The underlying bug was already in gotoDashboardLandingPage(): it checks
the URL once, and if it does not see dashboards#/list at that exact
moment, it assumes it must be inside a dashboard and waits for the
in-dashboard breadcrumb.

(cherry picked from commit 5ed988c)
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @maryam-saeidi

@kibanamachine kibanamachine merged commit eccae2f into elastic:9.4 May 29, 2026
28 checks passed
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.

2 participants