import CoEuiFeedbackMessage from '../../../components/14x/eui-feedback-message.js'
import EuiBasePage from './eui-base.po.js'

export default class EuiFeedbackMessagePage extends EuiBasePage {

  constructor() {
    super();
  }
  feedbackMessageByIndex(index) {
    return new CoEuiFeedbackMessage(this.mainContent).byIndex(index);
  }
  feedbackMessageByTextContains(text) {
    return new CoEuiFeedbackMessage(this.mainContent).byTextContains(text);
  }
  feedbackMessageByTextEqualsAndIndex(text, index, normalize = true) {
    return new CoEuiFeedbackMessage(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  feedbackMessageFromSectionWithId(sectionId) {
    return new CoEuiFeedbackMessage(this.sectionById(sectionId));
  }
  feedbackMessageFromSectionWithIdByIndex(sectionId, index) {
    return new CoEuiFeedbackMessage(this.sectionById(sectionId)).byIndex(index);
  }
}


