Skip to content

Commit

Permalink
Avoid a wrapped retry and use exists instead of find, which will take…
Browse files Browse the repository at this point in the history
… up all the time allotted for the retry if it fails once (#13467) (#14083)
  • Loading branch information
stacey-gammon authored Sep 20, 2017
1 parent b0b1975 commit 8f36778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/page_objects/dashboard_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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.');
});
}
}
Expand Down

0 comments on commit 8f36778

Please sign in to comment.