import EuiBasePage from './eui-base.po.js'
import CoEuiDialog from '../../../components/14x/eui-dialog.js'
import CoEuiDialogContainer from '../../../components/14x/eui-dialog-container.js'
import CdkOverlayContainer from '../../../components/cdk-overlay-container.js'

export default class EuiDialogPage extends EuiBasePage {
  constructor() {
      super();
  }
  dialogByIndex(index) {
    return new CoEuiDialog(this.mainContent).byIndex(index);
  }
  dialogByTextContains(text) {
    return new CoEuiDialog(this.mainContent).byTextContains(text);
  }
  dialogByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiDialog(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  get euiDialogContainerCO() {
    return new CoEuiDialogContainer(new CdkOverlayContainer(this.root));
  }
}


