Skip to content

Commit

Permalink
Updating the functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Feb 18, 2021
1 parent 5d0d6f9 commit e05f479
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await esArchiver.unload('unmapped_fields');
});

it('unmapped fields do not exist on a new saved search', async () => {
it('unmapped fields exist on a new saved search', async () => {
const expectedHitCount = '4';
await retry.try(async function () {
expect(await PageObjects.discover.getHitCount()).to.be(expectedHitCount);
Expand All @@ -46,13 +46,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// message is a mapped field
expect(allFields.includes('message')).to.be(true);
// sender is not a mapped field
expect(allFields.includes('sender')).to.be(false);
});

it('unmapped fields toggle does not exist on a new saved search', async () => {
await PageObjects.discover.openSidebarFieldFilter();
await testSubjects.existOrFail('filterSelectionPanel');
await testSubjects.missingOrFail('unmappedFieldsSwitch');
expect(allFields.includes('sender')).to.be(true);
});

it('unmapped fields exist on an existing saved search', async () => {
Expand Down

0 comments on commit e05f479

Please sign in to comment.