Skip to content

Commit

Permalink
[Discover] Unskip Discover large field number test (#100692) (#103050)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
  • Loading branch information
kibanamachine and kertal authored Jun 23, 2021
1 parent b725cf3 commit c73473e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/functional/apps/discover/_huge_fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const kibanaServer = getService('kibanaServer');
const testSubjects = getService('testSubjects');

// FLAKY: https://github.com/elastic/kibana/issues/96113
describe.skip('test large number of fields in sidebar', function () {
describe('test large number of fields in sidebar', function () {
before(async function () {
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/huge_fields');
await security.testUser.setRoles(['kibana_admin', 'test_testhuge_reader'], false);
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/large_fields');
await PageObjects.settings.navigateTo();
await kibanaServer.uiSettings.update({
'timepicker:timeDefaults': `{ "from": "2016-10-05T00:00:00", "to": "2016-10-06T00:00:00"}`,
});
await PageObjects.settings.createIndexPattern('*huge*', 'date', true);
await PageObjects.common.navigateToApp('discover');
});

it('test_huge data should have expected number of fields', async function () {
await PageObjects.discover.selectIndexPattern('*huge*');
await PageObjects.discover.selectIndexPattern('testhuge*');
// initially this field should not be rendered
const fieldExistsBeforeScrolling = await testSubjects.exists('field-myvar1050');
expect(fieldExistsBeforeScrolling).to.be(false);
Expand All @@ -41,8 +38,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

after(async () => {
await security.testUser.restoreDefaults();
await esArchiver.unload('test/functional/fixtures/es_archiver/large_fields');
await kibanaServer.uiSettings.replace({});
await esArchiver.unload('test/functional/fixtures/es_archiver/huge_fields');
await kibanaServer.uiSettings.unset('timepicker:timeDefaults');
});
});
}
Binary file not shown.
24 changes: 24 additions & 0 deletions test/functional/fixtures/es_archiver/huge_fields/mappings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "index",
"value": {
"index": "testhuge",
"mappings": {
"properties": {
"date": {
"type": "date"
}
}
},
"settings": {
"index": {
"mapping": {
"total_fields": {
"limit": "50000"
}
},
"number_of_replicas": "1",
"number_of_shards": "5"
}
}
}
}

0 comments on commit c73473e

Please sign in to comment.