From 20911848861e8683e92f8e919957d05faab7d2ae Mon Sep 17 00:00:00 2001 From: Shahzad Date: Tue, 2 Aug 2022 15:41:18 +0100 Subject: [PATCH] [Uptime] Fix overview flaky test (#137833) --- .../public/legacy_uptime/pages/overview.test.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/synthetics/public/legacy_uptime/pages/overview.test.tsx b/x-pack/plugins/synthetics/public/legacy_uptime/pages/overview.test.tsx index 30ea0e361580ae..f3808984137df4 100644 --- a/x-pack/plugins/synthetics/public/legacy_uptime/pages/overview.test.tsx +++ b/x-pack/plugins/synthetics/public/legacy_uptime/pages/overview.test.tsx @@ -8,9 +8,15 @@ import React from 'react'; import { OverviewPageComponent } from './overview'; import { render } from '../lib/helper/rtl_helpers'; +import { unifiedSearchPluginMock } from '@kbn/unified-search-plugin/public/mocks'; +import { setAutocomplete } from '@kbn/unified-search-plugin/public/services'; + +describe('MonitorPage', () => { + beforeEach(() => { + const autocompleteStart = unifiedSearchPluginMock.createStartContract(); + setAutocomplete(autocompleteStart.autocomplete); + }); -// FLAKY: https://github.com/elastic/kibana/issues/131346 -describe.skip('MonitorPage', () => { it('renders expected elements for valid props', async () => { const { findByText, findByPlaceholderText } = render();