Skip to content

Commit cfa4240

Browse files
author
Maja Grubic
committed
Fixing failing functional tests
1 parent 62f0aab commit cfa4240

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

test/functional/apps/discover/_data_grid_field_data.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
2727
const toasts = getService('toasts');
2828
const queryBar = getService('queryBar');
2929
const PageObjects = getPageObjects(['common', 'header', 'discover', 'visualize', 'timePicker']);
30-
const defaultSettings = { defaultIndex: 'logstash-*', 'doc_table:legacy': false };
30+
const defaultSettings = {
31+
defaultIndex: 'logstash-*',
32+
'doc_table:legacy': false,
33+
'discover:searchFieldsFromSource': false,
34+
};
3135
const dataGrid = getService('dataGrid');
3236

3337
describe('discover data grid field data tests', function describeIndexTests() {

test/functional/apps/discover/_large_string.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
3535
await security.testUser.setRoles(['kibana_admin', 'kibana_large_strings']);
3636
await esArchiver.load('empty_kibana');
3737
await esArchiver.loadIfNeeded('hamlet');
38-
await kibanaServer.uiSettings.replace({ defaultIndex: 'testlargestring' });
38+
await kibanaServer.uiSettings.replace({
39+
defaultIndex: 'testlargestring',
40+
'discover:searchFieldsFromSource': false,
41+
});
3942
});
4043

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

0 commit comments

Comments
 (0)