[Discover] Unskip flaky histogram time range test (#122324) (#122517)

This commit is contained in:
Matthias Wilhelm 2022-01-10 12:50:33 +01:00 committed by GitHub
parent 255260ff3c
commit dc12009833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
after(async () => {
await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] });
});
// FLAKY: https://github.com/elastic/kibana/issues/86602
describe.skip('query', function () {
describe('query', function () {
const queryName1 = 'Query # 1';
it('should show correct time range string by timepicker', async function () {
@ -121,8 +120,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
return actualCount === expectedCount;
});
const prevRowData = await PageObjects.discover.getDocTableField(1);
log.debug(`The first timestamp value in doc table before brushing: ${prevRowData}`);
let prevRowData = '';
// to make sure the table is already rendered
await retry.try(async () => {
prevRowData = await PageObjects.discover.getDocTableField(1);
log.debug(`The first timestamp value in doc table before brushing: ${prevRowData}`);
});
await PageObjects.discover.brushHistogram();
await PageObjects.discover.waitUntilSearchingHasFinished();
await retry.waitFor('chart rendering complete after being brushed', async () => {