import CoUxControlFeedback from '../../../../components/10x/ux/ux-control-feedback.js'
import EuiBasePage from '../eui-base.po.js'

export default class CoUxControlFeedbackPage extends EuiBasePage {
  constructor() {
      super();
  }
  feedbackByIndex(index) {
    const controlFeedback =  new CoUxControlFeedback(this.mainContent);
    return controlFeedback.byIndex(index);
  }
  feedbackByTextContains(text) {
    let controlFeedback = new CoUxControlFeedback(this.mainContent);
    return controlFeedback.byTextContains(text);
  }
  feedbackByTextEqualsAndIndex(text, index, normalize=true) {
    let controlFeedback = new CoUxControlFeedback(this.mainContent);
    return controlFeedback.byTextEqualsAndIndex(text, index, normalize);
  }
   feedbackFromSectionById(id) {
    return new CoUxControlFeedback(this.sectionById(id));
  }
  feedbackFromSectionWithIdByIndex(id, index) {
    let controlFeedback = new CoUxControlFeedback(this.sectionById(id));
    return controlFeedback.byIndex(index);
  }
}

