diff --git a/x-pack/plugins/cross_cluster_replication/public/__jest__/client_integration/follower_indices_list.test.js b/x-pack/plugins/cross_cluster_replication/public/__jest__/client_integration/follower_indices_list.test.js
index 9c881702ba3c6..f004617a099d3 100644
--- a/x-pack/plugins/cross_cluster_replication/public/__jest__/client_integration/follower_indices_list.test.js
+++ b/x-pack/plugins/cross_cluster_replication/public/__jest__/client_integration/follower_indices_list.test.js
@@ -379,16 +379,12 @@ describe('', () => {
test('should have a section to render the follower index shards stats', async () => {
await actions.clickFollowerIndexAt(0);
expect(exists('followerIndexDetail.shardsStatsSection')).toBe(true);
- });
-
- test('should render a EuiCodeEditor for each shards stats', async () => {
- await actions.clickFollowerIndexAt(0);
- const codeEditors = component.find(`EuiCodeEditor`);
+ const codeBlocks = find('shardsStats');
- expect(codeEditors.length).toBe(index1.shards.length);
- codeEditors.forEach((codeEditor, i) => {
- expect(JSON.parse(codeEditor.props().value)).toEqual(index1.shards[i]);
+ expect(codeBlocks.length).toBe(index1.shards.length);
+ codeBlocks.forEach((codeBlock, i) => {
+ expect(JSON.parse(codeBlock.props().children)).toEqual(index1.shards[i]);
});
});
});
diff --git a/x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/detail_panel/detail_panel.js b/x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/detail_panel/detail_panel.js
index 9289a7192e587..488311e4ae078 100644
--- a/x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/detail_panel/detail_panel.js
+++ b/x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/components/detail_panel/detail_panel.js
@@ -12,7 +12,7 @@ import {
EuiButton,
EuiButtonEmpty,
EuiCallOut,
- EuiCodeEditor,
+ EuiCodeBlock,
EuiDescriptionList,
EuiDescriptionListDescription,
EuiDescriptionListTitle,
@@ -356,18 +356,9 @@ export class DetailPanel extends Component {
-
+
+ {JSON.stringify(shard, null, 2)}
+
))}