fixes 'management scripted fields preview should display additional fields' when run with a HEAD (#59213)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Lee Drengenberg 2020-03-04 12:23:58 -06:00 committed by GitHub
parent 543481ba53
commit 07edafdfa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<void> {
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();
}
/**