Hi, I am creating a class for reuse testing, I have a parent cy object for this class, but it’s always chainable for the parent. How can I do?
example:
parent = cy.get (‘[data-cy=“form-render”]’)
Class Dropdown{
constructor(name, parent?){
this.name=name
this.parent=parent??
this.component= this.parent.find(‘[data-cy=“${this.name}”]’)
}
setValue(value){
this.component.type(value)
}
}