fix wrapped retry error. This was copied code from 6.x, which didn't have the back ported version (#13967)

This commit is contained in:
Stacey Gammon 2017-09-12 20:25:54 -04:00 committed by GitHub
parent a8171c2d4a
commit 60ad20f8c1

View file

@ -612,7 +612,8 @@ export function VisualizePageProvider({ getService, getPageObjects }) {
if (!onPage) {
await retry.try(async () => {
await this.clickLandingPageBreadcrumbLink();
await testSubjects.find('visualizationSearchFilter');
const onLandingPage = await this.onLandingPage();
if (!onLandingPage) throw new Error('Not on the landing page.');
});
}
}