Would there be any unexpected drawback to encapsul...
# best-practices
s
Would there be any unexpected drawback to encapsulating a
Chainable<JQuery<HTMLElement>>
inside of a page component-like class that would then provide methods that would be implemented like:
setPrice(price: number) { this.chainable.wrap(() => { cy.get('price-field').type(price.toString()) }