import Component  from '../component.js'
import MatProgressBar from '../material/mat-progress-bar.js'

export default class CoEuiFileUploadProgress extends Component {
  constructor(parent) {
    let selector = 'eui-file-upload-progress';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-file-upload/progress?at=support%2F13.x
  }
  get progressBar() {
    return this.currentPath + '//div[contains(@class,"file-upload__progress-bar")]';
  }
  async hasProgressBar() {
    return await (await $(this.progressBar)).isExisting();
  }
  get matProgressBarCO() {
    return new MatProgressBar(this.progressBar).byAttributeContains('class', 'file-upload__progress-bar__bar');
  }
  get progressValue() {
    return this.progressBar + '//div[contains(@class,"file-upload__progress-value")]';
  }
}


