Skip to content

[9.0] RenamesrenderReactTestingLibraryWithI18n to renderWithI18n (#218371)#218714

Merged
kibanamachine merged 2 commits intoelastic:9.0from
kibanamachine:backport/9.0/pr-218371
Apr 21, 2025
Merged

[9.0] RenamesrenderReactTestingLibraryWithI18n to renderWithI18n (#218371)#218714
kibanamachine merged 2 commits intoelastic:9.0from
kibanamachine:backport/9.0/pr-218371

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

…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)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 21, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) April 21, 2025 07:28
@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 Apr 21, 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)

@kibanamachine kibanamachine merged commit 2af22f2 into elastic:9.0 Apr 21, 2025
9 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #28 / console app console settings displays the a11y overlay
  • [job] [logs] Fleet Cypress Tests #1 / View agents list Agent status filter should filter on healthy and unhealthy
  • [job] [logs] Fleet Cypress Tests #1 / View agents list Bulk actions should allow to bulk upgrade agents and cancel that upgrade

Metrics [docs]

✅ unchanged

History

cc @TinaHeiligers

Dosant added a commit that referenced this pull request Jun 12, 2025
…#218371) (#223516)

# Backport

This will backport the following commits from `main` to `8.19`:
- [Renames`renderReactTestingLibraryWithI18n` to `renderWithI18n`
(#218371)](#218371)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Christiane (Tina)
Heiligers","email":"christiane.heiligers@elastic.co"},"sourceCommit":{"committedDate":"2025-04-21T07:21:59Z","message":"Renames`renderReactTestingLibraryWithI18n`
to `renderWithI18n` (#218371)\n\n## Summary\n\nThis PR only renames the
helper, no test implementations were changed.\n\nWhy now?\n\nMigrating
tests from Enzyme to RTL means that all usage of\n`mountWithIntl` has to
change and will likely be replaced by the helper\nthat wraps RTL render
with I18n. [A shorter name improves devEx](url).\n\nATM, consumption is
limited to a few tests, reducing the number of\ncodeowner reviews
required.\n\n### Identify risks\n\n- [x] In progress work and open PRs
might fail. Updating from main will\nprompt an undefined function that
will need to be renamed.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1fe09dcff4ec20ff877e17a181ed77c28e3e05d1","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","Team:Fleet","backport:prev-minor","Team:obs-ux-infra_services","v9.1.0","v9.0.1"],"title":"Renames`renderReactTestingLibraryWithI18n`
to
`renderWithI18n`","number":218371,"url":"https://github.com/elastic/kibana/pull/218371","mergeCommit":{"message":"Renames`renderReactTestingLibraryWithI18n`
to `renderWithI18n` (#218371)\n\n## Summary\n\nThis PR only renames the
helper, no test implementations were changed.\n\nWhy now?\n\nMigrating
tests from Enzyme to RTL means that all usage of\n`mountWithIntl` has to
change and will likely be replaced by the helper\nthat wraps RTL render
with I18n. [A shorter name improves devEx](url).\n\nATM, consumption is
limited to a few tests, reducing the number of\ncodeowner reviews
required.\n\n### Identify risks\n\n- [x] In progress work and open PRs
might fail. Updating from main will\nprompt an undefined function that
will need to be renamed.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1fe09dcff4ec20ff877e17a181ed77c28e3e05d1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218371","number":218371,"mergeCommit":{"message":"Renames`renderReactTestingLibraryWithI18n`
to `renderWithI18n` (#218371)\n\n## Summary\n\nThis PR only renames the
helper, no test implementations were changed.\n\nWhy now?\n\nMigrating
tests from Enzyme to RTL means that all usage of\n`mountWithIntl` has to
change and will likely be replaced by the helper\nthat wraps RTL render
with I18n. [A shorter name improves devEx](url).\n\nATM, consumption is
limited to a few tests, reducing the number of\ncodeowner reviews
required.\n\n### Identify risks\n\n- [x] In progress work and open PRs
might fail. Updating from main will\nprompt an undefined function that
will need to be renamed.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1fe09dcff4ec20ff877e17a181ed77c28e3e05d1"}},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/218714","number":218714,"state":"MERGED","mergeCommit":{"sha":"2af22f2f0422d3038caa56dcc154b8db20eb6554","message":"[9.0]
Renames`renderReactTestingLibraryWithI18n` to `renderWithI18n` (#218371)
(#218714)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [Renames`renderReactTestingLibraryWithI18n` to
`renderWithI18n`\n(#218371)](https://github.com/elastic/kibana/pull/218371)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\n---------\n\nCo-authored-by:
Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>"}}]}]
BACKPORT-->

---------

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
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.

3 participants