[Cross-Cluster Replication] Migrate Enzyme to RTL#239643
Merged
kapral18 merged 6 commits intoelastic:mainfrom Oct 21, 2025
Merged
[Cross-Cluster Replication] Migrate Enzyme to RTL#239643kapral18 merged 6 commits intoelastic:mainfrom
kapral18 merged 6 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
c72806e to
62b012b
Compare
62b012b to
6a114e1
Compare
- improve test-perf by replacing user.type/click with fireEvent
52d3d81 to
38e1f10
Compare
sabarasaba
reviewed
Oct 20, 2025
Member
sabarasaba
left a comment
There was a problem hiding this comment.
most changes lgtm, left few comments lmk what you think!
...r_replication/public/__jest__/client_integration/helpers/auto_follow_pattern_list.helpers.js
Show resolved
Hide resolved
...ns/private/cross_cluster_replication/public/__jest__/client_integration/helpers/eui_table.js
Outdated
Show resolved
Hide resolved
nickofthyme
approved these changes
Oct 20, 2025
Member
|
@elasticmachine merge upstream |
sabarasaba
approved these changes
Oct 21, 2025
Member
sabarasaba
left a comment
There was a problem hiding this comment.
latest changes lgtm, nice job!
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
cc @kapral18 |
NicholasPeretti
pushed a commit
to NicholasPeretti/kibana
that referenced
this pull request
Oct 27, 2025
Addresses elastic#222608 Fixes elastic#142774 Fixes elastic#100951 Fixes elastic#75261 ## Summary This PR migrates the Cross-Cluster Replication (CCR) plugin's integration tests from Enzyme to React Testing Library (RTL). ### Key Changes - Migrated 7 test files and their helper infrastructure from Enzyme to RTL (97/97 tests passing) - Unskipped and fixed 8 previously skipped tests - 21 files changed total ### Technical Improvements **Helper Infrastructure** - Created `helpers/render.js` for component rendering with routing & Redux - Added `helpers/eui_table.js` for EUI table interactions - Improved mock organization (split `notifications.mock.ts` from general mocks) **Test Quality** - Fixed test isolation issues with fresh store creation per test - Eliminated `act()` warnings - Proper async handling with `userEvent` and fake timers --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #222608
Fixes #142774
Fixes #100951
Fixes #75261
Summary
This PR migrates the Cross-Cluster Replication (CCR) plugin's integration tests from Enzyme to React Testing Library (RTL).
Key Changes
Technical Improvements
Helper Infrastructure
helpers/render.jsfor component rendering with routing & Reduxhelpers/eui_table.jsfor EUI table interactionsnotifications.mock.tsfrom general mocks)Test Quality
act()warningsuserEventand fake timers