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); } }