Skip to content

Commit

Permalink
fix: comboBox timeout added
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Jul 28, 2020
1 parent e01d167 commit c731be0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/services/combo_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -55,6 +56,7 @@ export function ComboBoxProvider({ getService }) {

async _waitForOptionsListLoading(comboBoxElement) {
await comboBoxElement.waitForDeletedByClassName('euiLoadingSpinner');
await PageObjects.common.sleep(1000);
}

async getOptionsList(comboBoxSelector) {
Expand Down

0 comments on commit c731be0

Please sign in to comment.