mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Unskip flaky sidebar tests (#153525)
Closes https://github.com/elastic/kibana/issues/146996 250x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2029
This commit is contained in:
parent
d75df24f96
commit
b0b50f2978
5 changed files with 52 additions and 8 deletions
|
@ -94,6 +94,7 @@ enabled:
|
|||
- test/functional/apps/discover/embeddable/config.ts
|
||||
- test/functional/apps/discover/group1/config.ts
|
||||
- test/functional/apps/discover/group2/config.ts
|
||||
- test/functional/apps/discover/group3/config.ts
|
||||
- test/functional/apps/getting_started/config.ts
|
||||
- test/functional/apps/home/config.ts
|
||||
- test/functional/apps/kibana_overview/config.ts
|
||||
|
|
|
@ -31,7 +31,6 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
|||
loadTestFile(require.resolve('./_field_data'));
|
||||
loadTestFile(require.resolve('./_field_data_with_fields_api'));
|
||||
loadTestFile(require.resolve('./_shared_links'));
|
||||
loadTestFile(require.resolve('./_sidebar'));
|
||||
loadTestFile(require.resolve('./_source_filters'));
|
||||
loadTestFile(require.resolve('./_large_string'));
|
||||
loadTestFile(require.resolve('./_greeting_screen'));
|
||||
|
|
|
@ -224,8 +224,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/146996
|
||||
describe.skip('renders field groups', function () {
|
||||
describe('renders field groups', function () {
|
||||
it('should show field list groups excluding subfields', async function () {
|
||||
await PageObjects.discover.waitUntilSidebarHasLoaded();
|
||||
expect(await PageObjects.discover.doesSidebarShowFields()).to.be(true);
|
||||
|
@ -242,8 +241,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
PageObjects.discover.getSidebarSectionSelector('empty', true)
|
||||
);
|
||||
await emptySectionButton.scrollIntoViewIfNecessary();
|
||||
availableFields = await PageObjects.discover.getSidebarSectionFieldNames('available');
|
||||
expect(availableFields.length).to.be(53);
|
||||
|
||||
await retry.waitFor('list to update after scrolling', async () => {
|
||||
availableFields = await PageObjects.discover.getSidebarSectionFieldNames('available');
|
||||
return availableFields.length === 53;
|
||||
});
|
||||
|
||||
expect(availableFields.join(', ')).to.be(
|
||||
`${expectedInitialAvailableFields}, url, utc_time, xss`
|
||||
);
|
||||
|
@ -273,7 +276,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
expect(await PageObjects.discover.doesSidebarShowFields()).to.be(true);
|
||||
|
||||
// Initial Available fields
|
||||
let availableFields = await PageObjects.discover.getSidebarSectionFieldNames('available');
|
||||
const availableFields = await PageObjects.discover.getSidebarSectionFieldNames('available');
|
||||
expect(availableFields.length).to.be(50);
|
||||
expect(
|
||||
availableFields
|
||||
|
@ -288,8 +291,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
PageObjects.discover.getSidebarSectionSelector('empty', true)
|
||||
);
|
||||
await emptySectionButton.scrollIntoViewIfNecessary();
|
||||
availableFields = await PageObjects.discover.getSidebarSectionFieldNames('available');
|
||||
expect(availableFields.length).to.be(53);
|
||||
|
||||
// Expand Empty section
|
||||
await PageObjects.discover.toggleSidebarSection('empty');
|
18
test/functional/apps/discover/group3/config.ts
Normal file
18
test/functional/apps/discover/group3/config.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { FtrConfigProviderContext } from '@kbn/test';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../../../config.base.js'));
|
||||
|
||||
return {
|
||||
...functionalConfig.getAll(),
|
||||
testFiles: [require.resolve('.')],
|
||||
};
|
||||
}
|
25
test/functional/apps/discover/group3/index.ts
Normal file
25
test/functional/apps/discover/group3/index.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const browser = getService('browser');
|
||||
|
||||
describe('discover/group3', function () {
|
||||
before(async function () {
|
||||
await browser.setWindowSize(1300, 800);
|
||||
});
|
||||
|
||||
after(async function unloadMakelogs() {
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
|
||||
});
|
||||
|
||||
loadTestFile(require.resolve('./_sidebar'));
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue