improve to.have.text assertion message for nested elements