From 4cdcda38fb27be0ef7b2374d07efb1abbd07a811 Mon Sep 17 00:00:00 2001 From: Spencer Date: Wed, 13 May 2020 17:52:37 -0700 Subject: [PATCH] [ftr/service/appsMenu] add missing await (#66498) --- test/functional/services/apps_menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/services/apps_menu.ts b/test/functional/services/apps_menu.ts index 236fb8f7535b6..90d1199ed3f7c 100644 --- a/test/functional/services/apps_menu.ts +++ b/test/functional/services/apps_menu.ts @@ -32,7 +32,7 @@ export function AppsMenuProvider({ getService }: FtrProviderContext) { public async closeCollapsibleNav() { const CLOSE_BUTTON = '[data-test-subj=collapsibleNav] > button'; if (await find.existsByCssSelector(CLOSE_BUTTON)) { - (await find.byCssSelector(CLOSE_BUTTON)).click(); + await find.clickByCssSelector(CLOSE_BUTTON); } }