hi all, can you recommend me a way to assert wheth...
# e2e-testing
p
hi all, can you recommend me a way to assert whether a element contains a substring? It contains a bunch of text and I would like to assert whether it contains a specific sentence. expect($element.text()).to.include.text('expected text') expect($element.text()).to.contain.text('expected text') expect($element.text()).to.have.text('expected text') all seem to fail -> because it uses have text and expects only the expected text to be in the element