import Component from '../component.js';

export default class CoEuiIcon extends Component {
    constructor(parent) {
      let selector = '*[self::eui-icon or self::span[@euiIcon] or self::i[@euiIcon] or self::div[@euiIcon]]';
      super(parent, selector);
      // https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-icon/eui-icon.component.ts?at=master
    }
    async isLoading() {
      return await (await $(this.currentPath + '/self::*[contains(@class,"eui-icon--loading")]')).isExisting();
    }
}
