fix: comboBox timeout added (#73498)

This commit is contained in:
Marta Bondyra 2020-07-30 16:59:16 +02:00 committed by GitHub
parent 114c96c694
commit 6ae11fc9cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {