From 7b4993fdcff463c1e3577ceb76c20718986ed6de Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 11 Sep 2023 15:00:29 -0500 Subject: [PATCH] [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 --- .../functional/test_suites/observability/cases/view_case.ts | 4 ++-- .../functional/test_suites/security/ftr/cases/view_case.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts b/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts index 8a2a776c68858..e86ddc9ffd015 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts @@ -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 }); }); }); diff --git a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts index 4ef63da784e21..33fa7d6d25dc0 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts @@ -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 }); }); });