From 8f36778c9367ed87a0cfae8dee8b64662fd0c5a8 Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Wed, 20 Sep 2017 15:51:10 -0400 Subject: [PATCH] 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) (#14083) --- test/functional/page_objects/dashboard_page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/page_objects/dashboard_page.js b/test/functional/page_objects/dashboard_page.js index ab333f33f68d3..b5d2d058c4e5e 100644 --- a/test/functional/page_objects/dashboard_page.js +++ b/test/functional/page_objects/dashboard_page.js @@ -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.'); }); } }