Skip to content

Commit

Permalink
[Discover] Attempt at fixing a failing test (#97790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic authored Apr 21, 2021
1 parent ffc3db5 commit 6532478
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/functional/apps/discover/_data_grid_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const dashboardAddPanel = getService('dashboardAddPanel');
const browser = getService('browser');

// FLAKY: https://github.com/elastic/kibana/issues/94545
describe.skip('discover data grid context tests', () => {
describe('discover data grid context tests', () => {
before(async () => {
await esArchiver.load('discover');
await esArchiver.loadIfNeeded('logstash_functional');
Expand Down Expand Up @@ -110,7 +109,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await alert?.accept();
expect(await browser.getCurrentUrl()).to.contain('#/context');
await PageObjects.header.waitUntilLoadingHasFinished();
expect(await docTable.getBodyRows()).to.have.length(6);
await retry.waitFor('document table has a length of 6', async () => {
const nrOfDocs = (await docTable.getBodyRows()).length;
return nrOfDocs === 6;
});
});
});
}

0 comments on commit 6532478

Please sign in to comment.