From c731be013d1c40502c806a7634ab03ceb67aea0e Mon Sep 17 00:00:00 2001 From: Marta Bondyra Date: Tue, 28 Jul 2020 18:19:30 +0200 Subject: [PATCH] fix: comboBox timeout added --- test/functional/services/combo_box.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/functional/services/combo_box.js b/test/functional/services/combo_box.js index 262ed7cbfdd1a..7840f87eab962 100644 --- a/test/functional/services/combo_box.js +++ b/test/functional/services/combo_box.js @@ -17,11 +17,12 @@ * under the License. */ -export function ComboBoxProvider({ getService }) { +export function ComboBoxProvider({ getService, getPageObjects }) { const testSubjects = getService('testSubjects'); const find = getService('find'); const log = getService('log'); const retry = getService('retry'); + const PageObjects = getPageObjects(['common']); // wrapper around EuiComboBox interactions class ComboBox { @@ -55,6 +56,7 @@ export function ComboBoxProvider({ getService }) { async _waitForOptionsListLoading(comboBoxElement) { await comboBoxElement.waitForDeletedByClassName('euiLoadingSpinner'); + await PageObjects.common.sleep(1000); } async getOptionsList(comboBoxSelector) {