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

# Conflicts:
#	test/functional/apps/discover/_data_grid_context.ts
This commit is contained in:
Maja Grubic 2021-04-22 17:23:01 +01:00 committed by GitHub
parent 6744742077
commit 4f0af3c20a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,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.getRowsText()).to.have.length(6);
await retry.waitFor('document table has a length of 6', async () => {
const nrOfDocs = (await docTable.getBodyRows()).length;
return nrOfDocs === 6;
});
});
});
}