import { By } from '@angular/platform-browser';

const getViewElement = (fixture, componentClass, klass) => {
    let el;
    let domElement;
    const de = fixture.debugElement.query(By.css(componentClass));
    if (de) {
        el = de.nativeElement;
        if (el && klass) {
            domElement = el.querySelectorAll(klass);
            if (domElement.length <= 1) {
                domElement = el.querySelector(klass);
            }
        }
    }
    return { de, el, domElement };
};

/**
 * Generated bundle index. Do not edit.
 */

export { getViewElement };
//# sourceMappingURL=eui-components-externals-helpers.mjs.map
