Skip to content

Commit

Permalink
Fixing failing functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Jan 16, 2021
1 parent 62f0aab commit cfa4240
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion test/functional/apps/discover/_data_grid_field_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const toasts = getService('toasts');
const queryBar = getService('queryBar');
const PageObjects = getPageObjects(['common', 'header', 'discover', 'visualize', 'timePicker']);
const defaultSettings = { defaultIndex: 'logstash-*', 'doc_table:legacy': false };
const defaultSettings = {
defaultIndex: 'logstash-*',
'doc_table:legacy': false,
'discover:searchFieldsFromSource': false,
};
const dataGrid = getService('dataGrid');

describe('discover data grid field data tests', function describeIndexTests() {
Expand Down
7 changes: 5 additions & 2 deletions test/functional/apps/discover/_large_string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await security.testUser.setRoles(['kibana_admin', 'kibana_large_strings']);
await esArchiver.load('empty_kibana');
await esArchiver.loadIfNeeded('hamlet');
await kibanaServer.uiSettings.replace({ defaultIndex: 'testlargestring' });
await kibanaServer.uiSettings.replace({
defaultIndex: 'testlargestring',
'discover:searchFieldsFromSource': false,
});
});

it('verify the large string book present', async function () {
const ExpectedDoc =
'_id:1 _type: - _index:testlargestring _score:0' +
'_id:1 _type:_doc _index:testlargestring _score:0' +
' mybook:Project Gutenberg EBook of Hamlet, by William Shakespeare' +
' This eBook is for the use of anyone anywhere in the United States' +
' and most other parts of the world at no cost and with almost no restrictions whatsoever.' +
Expand Down

0 comments on commit cfa4240

Please sign in to comment.