Skip to content

Commit

Permalink
[Code] add skipCloud for all code function tests (#44334) (#44449)
Browse files Browse the repository at this point in the history
  • Loading branch information
mw-ding authored Aug 30, 2019
1 parent 1aeb617 commit fb451bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/functional/apps/code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit fb451bb

Please sign in to comment.