Skip to content

Commit

Permalink
Harden and unskip empty results query functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Jun 22, 2021
1 parent f2ca7fc commit 9e2ce5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/functional/apps/discover/_discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/89550
describe.skip('query #2, which has an empty time range', () => {
describe('query #2, which has an empty time range', () => {
const fromTime = 'Jun 11, 1999 @ 09:22:11.000';
const toTime = 'Jun 12, 1999 @ 11:21:04.000';

Expand All @@ -193,8 +192,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

it('should show "no results"', async () => {
const isVisible = await PageObjects.discover.hasNoResults();
expect(isVisible).to.be(true);
await retry.waitFor('No results screen is displayed', async function () {
const isVisible = await PageObjects.discover.hasNoResults();
return isVisible === true;
});
});

it('should suggest a new time range is picked', async () => {
Expand Down

0 comments on commit 9e2ce5a

Please sign in to comment.