Skip to content

Commit

Permalink
[Discover] Unskip flaky histogram time range test (#122324) (#122518)
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Jan 10, 2022
1 parent 52cdec4 commit 1e12be1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/functional/apps/discover/_discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 1e12be1

Please sign in to comment.