mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
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:
parent
b0b19752f1
commit
8f36778c93
1 changed files with 2 additions and 1 deletions
|
@ -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.');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue