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

This commit is contained in:
Stacey Gammon 2017-09-13 16:30:33 -04:00 committed by GitHub
parent b5c71768dd
commit 2f1d96dbe5

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