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)

This commit is contained in:
Stacey Gammon 2017-09-20 15:51:10 -04:00 committed by GitHub
parent b0b19752f1
commit 8f36778c93

View file

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