[ML] Migrate Enzyme tests to RTL#225423
Conversation
|
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Deleted this one as it didn't really check anything, this is a more structured component and we have functional tests around outlier detection.
| return ( | ||
| <> | ||
| <EuiFlexGroup key={`url_${index}`} data-test-subj={`mlJobEditCustomUrlItem_${index}`}> | ||
| <React.Fragment key={`url_${index}`}> |
There was a problem hiding this comment.
this was causing a console warning
Enzyme tests to RTLEnzyme tests to RTL
💚 Build Succeeded
Metrics [docs]Async chunks
Count of Enzyme imports
History
cc @rbrtj |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/15972507668 |
Resolves elastic#223197 (cherry picked from commit a01759c)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.1`: - [[ML] Migrate `Enzyme` tests to `RTL` (#225423)](#225423) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-30T12:10:03Z","message":"[ML] Migrate `Enzyme` tests to `RTL` (#225423)\n\nResolves https://github.com/elastic/kibana/issues/223197","sha":"a01759c410312b65134c9daf505d94f8e55b9c44","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","Team:ML","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ML] Migrate `Enzyme` tests to `RTL`","number":225423,"url":"https://github.com/elastic/kibana/pull/225423","mergeCommit":{"message":"[ML] Migrate `Enzyme` tests to `RTL` (#225423)\n\nResolves https://github.com/elastic/kibana/issues/223197","sha":"a01759c410312b65134c9daf505d94f8e55b9c44"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225423","number":225423,"mergeCommit":{"message":"[ML] Migrate `Enzyme` tests to `RTL` (#225423)\n\nResolves https://github.com/elastic/kibana/issues/223197","sha":"a01759c410312b65134c9daf505d94f8e55b9c44"}}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16019566016 |
Resolves elastic#223197 (cherry picked from commit a01759c)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.19`: - [[ML] Migrate `Enzyme` tests to `RTL` (#225423)](#225423) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-30T12:10:03Z","message":"[ML] Migrate `Enzyme` tests to `RTL` (#225423)\n\nResolves https://github.com/elastic/kibana/issues/223197","sha":"a01759c410312b65134c9daf505d94f8e55b9c44","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","Team:ML","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ML] Migrate `Enzyme` tests to `RTL`","number":225423,"url":"https://github.com/elastic/kibana/pull/225423","mergeCommit":{"message":"[ML] Migrate `Enzyme` tests to `RTL` (#225423)\n\nResolves https://github.com/elastic/kibana/issues/223197","sha":"a01759c410312b65134c9daf505d94f8e55b9c44"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/225828","number":225828,"state":"MERGED","mergeCommit":{"sha":"7776cc0162e38bed303dd06b6819667a0e725f64","message":"[9.1] [ML] Migrate `Enzyme` tests to `RTL` (#225423) (#225828)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[ML] Migrate `Enzyme` tests to `RTL`\n(#225423)](https://github.com/elastic/kibana/pull/225423)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225423","number":225423,"mergeCommit":{"message":"[ML] Migrate `Enzyme` tests to `RTL` (#225423)\n\nResolves https://github.com/elastic/kibana/issues/223197","sha":"a01759c410312b65134c9daf505d94f8e55b9c44"}}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
The previous PR - #225423, targeted only direct imports from `enzyme`. This PR targets all occurrences of helper functions that use Enzyme under the hood. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
The previous PR - elastic#225423, targeted only direct imports from `enzyme`. This PR targets all occurrences of helper functions that use Enzyme under the hood. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 293bb28)
The previous PR - elastic#225423, targeted only direct imports from `enzyme`. This PR targets all occurrences of helper functions that use Enzyme under the hood. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 293bb28) # Conflicts: # x-pack/platform/plugins/shared/ml/public/application/settings/settings.test.tsx
The previous PR - elastic#225423, targeted only direct imports from `enzyme`. This PR targets all occurrences of helper functions that use Enzyme under the hood. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Resolves #223197