add retry to avoid race conditions in controls test (#121909)

This commit is contained in:
Devon Thomson 2021-12-22 15:39:47 -05:00 committed by GitHub
parent 3955d0dc81
commit 398221659c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
it('Applies options list control options to dashboard', async () => {
expect(await pieChart.getPieSliceCount()).to.be(2);
await retry.try(async () => {
expect(await pieChart.getPieSliceCount()).to.be(2);
});
});
it('Applies options list control options to dashboard by default on open', async () => {