Skip to content

[9.4] [dashboard] unskip platform/plugins/private/links/public/components/editor tests (#262904)#264206

Merged
kibanamachine merged 1 commit into
elastic:9.4from
kibanamachine:backport/9.4/pr-262904
Apr 17, 2026
Merged

[9.4] [dashboard] unskip platform/plugins/private/links/public/components/editor tests (#262904)#264206
kibanamachine merged 1 commit into
elastic:9.4from
kibanamachine:backport/9.4/pr-262904

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

…ditor tests (elastic#262904)

Closes elastic#253303

Test skipped because it some times timed out (took over 5000ms). The
test is slow because it renders a lazy loaded component. This PR
resolves the lazy load by moving `DashboardNavigationOptionsEditor` into
a package. Unfortunately, this required creating 3 packages, `schema`,
`common`, and a `components` package.

The tests were originally added in
elastic#211041.
elastic#211041 fixed a bug but did not
resolve the code smell that caused the bug. The problem is that
`options` state is getting stored at 2 different levels in 2 different
`useStates`. This PR resolves that code smell by removing LinkOption
component and moving it into `LinkEditor` and then removing duplicated
`linkOptions` state.

Original test run (with lazy load component). Notice how first test case
takes over a second because lazy load component has to load.
<img width="1371" height="193" alt="Screenshot 2026-04-13 at 3 32 25 PM"
src="https://github.com/user-attachments/assets/0a9a58f6-b8ee-488d-ad9b-116467eb14a1"
/>

This PR test run (with component in package - so no lazy loading
needed).
<img width="1293" height="188" alt="Screenshot 2026-04-13 at 3 34 26 PM"
src="https://github.com/user-attachments/assets/5ff05378-ebe7-461f-a1e2-ecae57818944"
/>

---------

Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit e774326)
@kibanamachine kibanamachine merged commit 04e1087 into elastic:9.4 Apr 17, 2026
20 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