Skip to content

Commit

Permalink
Sets discover searchFieldsFromSource config flag to true
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Jan 28, 2021
1 parent 4ffe335 commit 595950a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/functional/apps/home/_sample_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const renderable = getService('renderable');
const dashboardExpect = getService('dashboardExpect');
const PageObjects = getPageObjects(['common', 'header', 'home', 'dashboard', 'timePicker']);
// Added to resolve Failing test: https://github.com/elastic/kibana/issues/89379
const kibanaServer = getService('kibanaServer');

describe('sample data', function describeIndexTests() {
before(async () => {
await security.testUser.setRoles(['kibana_admin', 'kibana_sample_admin']);
await kibanaServer.uiSettings.update({
'discover:searchFieldsFromSource': true,
});
await PageObjects.common.navigateToUrl('home', '/tutorial_directory/sampleData', {
useActualUrl: true,
});
Expand Down Expand Up @@ -100,9 +105,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await pieChart.expectPieSliceCount(4);
log.debug('Checking area, bar and heatmap charts rendered');
await dashboardExpect.seriesElementCount(15);
// Failing test: https://github.com/elastic/kibana/issues/89379
// log.debug('Checking saved searches rendered');
// await dashboardExpect.savedSearchRowCount(10);
log.debug('Checking saved searches rendered');
await dashboardExpect.savedSearchRowCount(50);
log.debug('Checking input controls rendered');
await dashboardExpect.inputControlItemCount(3);
log.debug('Checking tag cloud rendered');
Expand Down

0 comments on commit 595950a

Please sign in to comment.