From 8952e57fa0207a0b559c387469257950bec70f2b Mon Sep 17 00:00:00 2001 From: Mengwei Ding Date: Thu, 29 Aug 2019 15:59:10 -0700 Subject: [PATCH] [Code] add skipCloud for all code function tests (#44334) --- .../public/components/query_bar/components/query_bar.test.tsx | 2 -- .../components/typeahead/suggestions_component.test.tsx | 2 -- x-pack/test/functional/apps/code/index.ts | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/x-pack/legacy/plugins/code/public/components/query_bar/components/query_bar.test.tsx b/x-pack/legacy/plugins/code/public/components/query_bar/components/query_bar.test.tsx index 94fd5661ea05e..4e79d80689025 100644 --- a/x-pack/legacy/plugins/code/public/components/query_bar/components/query_bar.test.tsx +++ b/x-pack/legacy/plugins/code/public/components/query_bar/components/query_bar.test.tsx @@ -15,8 +15,6 @@ import { AutocompleteSuggestionType } from '../suggestions'; import props from './__fixtures__/props.json'; import { CodeQueryBar } from './query_bar'; -jest.mock('ui/kfetch'); - // Injest a mock random function to fixiate the output for generating component id. const mockMath = Object.create(global.Math); mockMath.random = () => 0.5; diff --git a/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/suggestions_component.test.tsx b/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/suggestions_component.test.tsx index 21e7c2ec8c6a8..04de9a244f0cb 100644 --- a/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/suggestions_component.test.tsx +++ b/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/suggestions_component.test.tsx @@ -12,8 +12,6 @@ import { MemoryRouter } from 'react-router-dom'; import props from '../__fixtures__/props.json'; import { SuggestionsComponent } from './suggestions_component'; -jest.mock('ui/kfetch'); - test('render empty suggestions component', () => { const emptyFn = () => { return; diff --git a/x-pack/test/functional/apps/code/index.ts b/x-pack/test/functional/apps/code/index.ts index f96e5af7fdc59..a2b16a0878bf6 100644 --- a/x-pack/test/functional/apps/code/index.ts +++ b/x-pack/test/functional/apps/code/index.ts @@ -7,7 +7,8 @@ import { FtrProviderContext } from '../../ftr_provider_context'; export default function codeApp({ loadTestFile }: FtrProviderContext) { describe('Code', function codeAppTestSuite() { - this.tags('ciGroup2'); + // Add 'skipCloud' regarding issue: https://github.com/elastic/kibana/issues/39386 + this.tags(['ciGroup2', 'skipCloud']); loadTestFile(require.resolve('./manage_repositories')); loadTestFile(require.resolve('./search')); loadTestFile(require.resolve('./explore_repository'));