[Discover] Attempt at fixing a failing test (#97790)

This commit is contained in:
Maja Grubic 2021-04-21 14:08:46 +01:00 committed by GitHub
parent ffc3db5a30
commit 6532478ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');
@ -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;
});
});
});
}