import EuiBasePage from '../eui-base.po.js';
import CoUxBadge from '../../../../components/10x/ux/ux-badge.js';

export default class BadgePage extends EuiBasePage {
  constructor() {
      super();
  }
  get badgeCo() {
    return new CoUxBadge(this.mainContent);
  }
  badgeByIndex(index) {
    let badge =  new CoUxBadge(this.mainContent);
    return badge.byIndex(index);
  }
  badgeByTextContains(text) {
    let badge = new CoUxBadge(this.mainContent);
    return badge.byTextContains(text);
  }
  badgeByTextEqualsAndIndex(text, index, normalize=true) {
    let badge = new CoUxBadge(this.mainContent);
    return badge.byTextEqualsAndIndex(text, index, normalize);
  }
  badgeFromSectionByIndex(sectionId, index) {
    let badge = new CoUxBadge(this.sectionById(sectionId));
    return badge.byIndex(index);
  }
}


