Skip to content

[8.19] RenamesrenderReactTestingLibraryWithI18n to renderWithI18n (#218371)#223516

Merged
Dosant merged 2 commits intoelastic:8.19from
Dosant:backport/8.19/pr-218371
Jun 12, 2025
Merged

[8.19] RenamesrenderReactTestingLibraryWithI18n to renderWithI18n (#218371)#223516
Dosant merged 2 commits intoelastic:8.19from
Dosant:backport/8.19/pr-218371

Conversation

@Dosant
Copy link
Contributor

@Dosant Dosant commented Jun 12, 2025

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…ic#218371)

## Summary

This PR only renames the helper, no test implementations were changed.

Why now?

Migrating tests from Enzyme to RTL means that all usage of
`mountWithIntl` has to change and will likely be replaced by the helper
that wraps RTL render with I18n. [A shorter name improves devEx](url).

ATM, consumption is limited to a few tests, reducing the number of
codeowner reviews required.

### Identify risks

- [x] In progress work and open PRs might fail. Updating from main will
prompt an undefined function that will need to be renamed.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 1fe09dc)

# Conflicts:
#	src/core/packages/apps/browser-internal/src/status/components/status_table.test.tsx
@Dosant Dosant requested a review from kibanamachine as a code owner June 12, 2025 09:47
@Dosant Dosant added the backport This PR is a backport of another PR label Jun 12, 2025
@Dosant Dosant enabled auto-merge (squash) June 12, 2025 09:47
@botelastic botelastic bot added Team:Fleet Team label for Observability Data Collection Fleet team Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. labels Jun 12, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 12, 2025

💔 Build Failed

Failed CI Steps

History

@Dosant Dosant merged commit d794f69 into elastic:8.19 Jun 12, 2025
8 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 Team:Fleet Team label for Observability Data Collection Fleet team Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants