From 9d93ea80b1bdd5e4248de1988e11be963c86bd84 Mon Sep 17 00:00:00 2001 From: Catherine Liu Date: Fri, 2 Aug 2024 19:29:46 -0700 Subject: [PATCH] Fix openContextMenu --- test/functional/services/dashboard/panel_actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/services/dashboard/panel_actions.ts b/test/functional/services/dashboard/panel_actions.ts index ea40a664e2a6f78..76a03bfacb1e5d5 100644 --- a/test/functional/services/dashboard/panel_actions.ts +++ b/test/functional/services/dashboard/panel_actions.ts @@ -79,7 +79,7 @@ export class DashboardPanelActionsService extends FtrService { async openContextMenu(parent?: WebElementWrapper) { this.log.debug(`openContextMenu(${parent}`); - const open = this.testSubjects.exists('embeddablePanelContextMenuOpen'); + const open = await this.testSubjects.exists('embeddablePanelContextMenuOpen'); if (!open) await this.toggleContextMenu(parent); await this.expectContextMenuToBeOpen(); }