[ftr/serverless] Fix unhandled promise rejection (#166195)

Attempt at fixing
https://buildkite.com/elastic/kibana-serverless/builds/2852#018a84d9-4310-45e5-8ba2-1fac9cb30a91/2232-2861
This commit is contained in:
Jon 2023-09-11 15:00:29 -05:00 committed by GitHub
parent 2f1da3ccc8
commit 7b4993fdcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -425,8 +425,8 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
});
it('should set the cases title', async () => {
svlCommonNavigation.breadcrumbs.expectExists();
svlCommonNavigation.breadcrumbs.expectBreadcrumbExists({ text: createdCase.title });
await svlCommonNavigation.breadcrumbs.expectExists();
await svlCommonNavigation.breadcrumbs.expectBreadcrumbExists({ text: createdCase.title });
});
});

View file

@ -424,8 +424,8 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
});
it('should set the cases title', async () => {
svlCommonNavigation.breadcrumbs.expectExists();
svlCommonNavigation.breadcrumbs.expectBreadcrumbExists({ text: createdCase.title });
await svlCommonNavigation.breadcrumbs.expectExists();
await svlCommonNavigation.breadcrumbs.expectBreadcrumbExists({ text: createdCase.title });
});
});