RenamesrenderReactTestingLibraryWithI18n to renderWithI18n#218371
RenamesrenderReactTestingLibraryWithI18n to renderWithI18n#218371TinaHeiligers merged 4 commits intoelastic:mainfrom
renderReactTestingLibraryWithI18n to renderWithI18n#218371Conversation
dmlemeshko
left a comment
There was a problem hiding this comment.
src/platform/packages/shared/kbn-test-jest-helpers/src/testing_library_react_helpers.tsx change LGTM
|
Pinging @elastic/fleet (Team:Fleet) |
|
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
peteharverson
left a comment
There was a problem hiding this comment.
Transform test changes LGTM
rmyz
left a comment
There was a problem hiding this comment.
x-pack/solutions/observability/plugins/apm/public/components/alerting/ui_components/alert_details_app_section/view_in_apm_button.test.tsx changes LGTM
|
@parkiino automation added you as a required reviewer and the PR's already been approved by your team. Good to merge? |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
|
|
Starting backport for target branches: 9.0 https://github.com/elastic/kibana/actions/runs/14569360315 |
…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)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…218371) (#218714) # Backport This will backport the following commits from `main` to `9.0`: - [Renames`renderReactTestingLibraryWithI18n` to `renderWithI18n` (#218371)](#218371) <!--- Backport version: 9.6.6 --> ### 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"],"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"}}]}] BACKPORT--> --------- Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
…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>
…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>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. 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
…#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>
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
mountWithIntlhas to change and will likely be replaced by the helper that wraps RTL render with I18n. A shorter name improves devEx.ATM, consumption is limited to a few tests, reducing the number of codeowner reviews required.
Identify risks