From 1b51f063430eb2aa3387ededccba8f2c2a48b0d2 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Fri, 5 Jun 2020 10:00:19 -0600 Subject: [PATCH] await focus --- 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 783e391983d12..aa7934d6b1156 100644 --- a/test/functional/services/apps_menu.ts +++ b/test/functional/services/apps_menu.ts @@ -60,7 +60,7 @@ export function AppsMenuProvider({ getService, getPageObjects }: FtrProviderCont if (await find.existsByCssSelector(CLOSE_BUTTON)) { // Close button is only visible when focused const button = await find.byCssSelector(CLOSE_BUTTON); - button.focus(); + await button.focus(); await find.clickByCssSelector(CLOSE_BUTTON); }