import CoEuiBadge from '../../../components/14x/eui-badge.js'
import EuiBasePage from './eui-base.po.js'

export default class EuiBadgePage extends EuiBasePage {

  constructor() {
      super();
  }
  badgeByIndex(index) {
    return new CoEuiBadge(this.mainContent).byIndex(index);
  }
  badgeByTextContains(text) {
    return new CoEuiBadge(this.mainContent).byTextContains(text);
  }
  badgeByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiBadge(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  badgeFromSectionById(id) {
    return new CoEuiBadge(this.sectionById(id));
  }
  badgeFromSectionWithIdByIndex(id, index) {
    return new CoEuiBadge(this.sectionById(id)).byIndex(index);
  }

}


