Skip to content

[9.0] [Unzyme] Migrates status_table of enzyme completely (#218361)#218491

Merged
jbudz merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-218361
Apr 17, 2025
Merged

[9.0] [Unzyme] Migrates status_table of enzyme completely (#218361)#218491
jbudz merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-218361

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

## Summary
fix elastic#217589 again
The implementation in elastic#217599 for
the status table still relied on enzyme indirectly by using
`mountWithI18n`.

This PR refactors the test from implementing the enzyme-reliant helper
to using `renderReactTestingLibraryWithI18n` that doesn't.

## Note to reviewers:
If `renderReactTestingLibraryWithI18n` becomes the standard, renaming it
to something shorter (e.g. `renderWithI18n`) would be nicer. ATM, the
helper's only used in 13 files and it would be better to do so now that
when adoption becomes wide-spread.

The package is owned by `shared-ux` and renaming the function would
require code-reviews from too many teams to justify doing so in this PR.

### Checklist

Check the PR satisfies following conditions.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit c45f791)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 16, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) April 16, 2025 20:29
@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 16, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #30 / console app console context menu should open documentation when open documentation button is clicked
  • [job] [logs] FTR Configs #30 / console app console context menu should open documentation when open documentation button is clicked
  • [job] [logs] FTR Configs #30 / console app console context menu should open documentation when open documentation button is clicked

Metrics [docs]

✅ unchanged

History

cc @TinaHeiligers

@TinaHeiligers
Copy link
Contributor

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

There are no new commits on the base branch.

@jbudz jbudz disabled auto-merge April 17, 2025 17:10
@jbudz jbudz merged commit cb02287 into elastic:9.0 Apr 17, 2025
11 of 12 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.

4 participants