Skip to content

Commit

Permalink
[Discover] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Nov 28, 2022
1 parent fffd5ce commit 79ac33b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/functional/apps/discover/group1/_sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

describe('renders field groups', function () {
it('should show field list groups excluding multifields', async function () {
it('should show field list groups excluding subfields', async function () {
await PageObjects.discover.waitUntilSidebarHasLoaded();
expect(await PageObjects.discover.doesSidebarShowFields()).to.be(true);

Expand Down Expand Up @@ -157,7 +157,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
});

it('should show field list groups including multifields when searched from source', async function () {
it('should show field list groups excluding subfields when searched from source', async function () {
await kibanaServer.uiSettings.update({ 'discover:searchFieldsFromSource': true });
await browser.refresh();

Expand All @@ -171,7 +171,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
availableFields
.join(', ')
.startsWith(
'@message, @message.raw, @tags, @tags.raw, @timestamp, agent, agent.raw, bytes, clientip, extension, extension.raw'
'@message, @tags, @timestamp, agent, bytes, clientip, extension, geo.coordinates'
)
).to.be(true);

Expand All @@ -181,7 +181,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
await emptySectionButton.scrollIntoViewIfNecessary();
availableFields = await PageObjects.discover.getSidebarSectionFieldNames('available');
expect(availableFields.length).to.be(75);
expect(availableFields.length).to.be(53);

// Expand Empty section
await PageObjects.discover.toggleSidebarSection('empty');
Expand All @@ -202,7 +202,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
).to.be('relatedContent');

expect(await PageObjects.discover.getSidebarAriaDescription()).to.be(
'83 available fields. 1 unmapped field. 0 empty fields. 3 meta fields.'
'53 available fields. 1 unmapped field. 0 empty fields. 3 meta fields.'
);
});

Expand Down

0 comments on commit 79ac33b

Please sign in to comment.