Avoid a wrapped retry and use exists instead of find, which will take up all the time allotted for the retry if it fails once (#13467) (#13966)

This commit is contained in:
Stacey Gammon 2017-09-12 19:12:23 -04:00 committed by GitHub
parent dff47d8a6b
commit eab5319385

View file

@ -95,7 +95,8 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
if (!onPage) {
await retry.try(async () => {
await this.clickDashboardBreadcrumbLink();
await testSubjects.find('searchFilter');
const onDashboardLandingPage = await this.onDashboardLandingPage();
if (!onDashboardLandingPage) throw new Error('Not on the landing page.');
});
}
}