export class Input { constructor(private selector: string) {} getInputElement() { if (this.selector.includes('data-auto-id')) { return cy.get(`${this.selector} input`); } return cy.daAttr(this.selector, 'input'); } type(text) { this.getInputElement().type(text); } clear() { this.getInputElement().clear(); } }