Skip to content

Commit

Permalink
[Discover] Unskip and improve empty results query functional test (el…
Browse files Browse the repository at this point in the history
…astic#102995) (elastic#103110)

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
  • Loading branch information
kibanamachine and kertal committed Jun 23, 2021
1 parent 3d69df2 commit eea0add
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 @@ -185,8 +185,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 @@ -197,8 +196,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 eea0add

Please sign in to comment.