Skip to content
Snippets Groups Projects
text-editor.e2e.component.ts 457 B
Newer Older
  • Learn to ignore specific revisions
  • export class TextEditorE2eComponent {
      private readonly root: string;
      private readonly validationError: string;
    
      constructor(root: string) {
        this.root = `${root}-text-editor`;
        this.validationError = `${root}-text-editor-error`;
      }
    
      public getInput(): Cypress.Chainable<Element> {
        return cy.getTestElement(this.root);
      }
    
      public getErrorMessage(): Cypress.Chainable<Element> {
        return cy.getTestElement(this.validationError);
      }
    }