mi selector es name="One"
value="textwritinginfield"
qué estoy haciendo :
utilicé expect("[name=One]").to.have.value('_$')
resultado:
intentaste hacer una afirmación chai jquery en un objeto que no es ni un objeto DOM ni un objeto jQuery.
la aserción chai j-query que usó fue value ..
cy.get(#selector).type(" ", {force: true}) cy.get(#otherButton).click() cy.reload() expect(#selector).to.have.value('_$')