From 65cf2b2507cb2f723f405211862e64cc492dd4e7 Mon Sep 17 00:00:00 2001 From: Ignacio Rivas Date: Tue, 21 Nov 2023 14:24:30 +0100 Subject: [PATCH] Skip test --- .../follower_indices_list.test.js | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) 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 f100f2d62011f..536c188b48369 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 @@ -363,15 +363,16 @@ describe('', () => { }); }); - test('should have a section to render the follower index shards stats', async () => { - httpRequestsMockHelpers.setLoadFollowerIndicesResponse({ indices: followerIndices }); - - // Mount the component - await act(async () => { - ({ find, exists, component, actions } = setup()); - }); - component.update(); + test('should not have settings values for a "paused" follower index', async () => { + await actions.clickFollowerIndexAt(1); // the second follower index is paused + expect(exists('followerIndexDetail.settingsValues')).toBe(false); + expect(find('followerIndexDetail.settingsSection').text()).toContain( + 'paused follower index does not have settings' + ); + }); + // FLAKY: https://github.com/elastic/kibana/issues/100951 + test.skip('should have a section to render the follower index shards stats', async () => { await actions.clickFollowerIndexAt(0); expect(exists('followerIndexDetail.shardsStatsSection')).toBe(true); @@ -382,14 +383,6 @@ describe('', () => { expect(JSON.parse(codeBlock.props().children)).toEqual(index1.shards[i]); }); }); - - test('should not have settings values for a "paused" follower index', async () => { - await actions.clickFollowerIndexAt(1); // the second follower index is paused - expect(exists('followerIndexDetail.settingsValues')).toBe(false); - expect(find('followerIndexDetail.settingsSection').text()).toContain( - 'paused follower index does not have settings' - ); - }); }); }); });