Skip to content

Commit

Permalink
Improve functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Oct 13, 2021
1 parent 4f80cbe commit 31a4861
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/functional/apps/discover/_discover_fields_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

expect(await PageObjects.discover.getDocHeader()).to.have.string('_source');
});

it('switches to Document column when fields API is used', async function () {
await PageObjects.settings.navigateTo();
await PageObjects.settings.clickKibanaSettings();
await PageObjects.settings.toggleAdvancedSettingCheckbox('discover:searchFieldsFromSource');

await PageObjects.common.navigateToApp('discover');
await PageObjects.timePicker.setDefaultAbsoluteRange();

expect(await PageObjects.discover.getDocHeader()).to.have.string('Document');
});
});
}

0 comments on commit 31a4861

Please sign in to comment.