From 07edafdfa7e3ed990aa14ba25abd7d2808c4549a Mon Sep 17 00:00:00 2001 From: Lee Drengenberg Date: Wed, 4 Mar 2020 12:23:58 -0600 Subject: [PATCH] fixes 'management scripted fields preview should display additional fields' when run with a HEAD (#59213) Co-authored-by: Elastic Machine --- test/functional/services/combo_box.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/services/combo_box.ts b/test/functional/services/combo_box.ts index 8f5b4bed1e89..33610e64f1c7 100644 --- a/test/functional/services/combo_box.ts +++ b/test/functional/services/combo_box.ts @@ -54,7 +54,8 @@ export function ComboBoxProvider({ getService, getPageObjects }: FtrProviderCont * @param element element that wraps up option */ private async clickOption(isMouseClick: boolean, element: WebElementWrapper): Promise { - return isMouseClick ? await element.clickMouseButton() : await element.click(); + // element.click causes scrollIntoView which causes combobox to close, using _webElement.click instead + return isMouseClick ? await element.clickMouseButton() : await element._webElement.click(); } /**