https://cypress.io logo
I'm trying to compare two contents, but I have err...
# e2e-testing
p
I'm trying to compare two contents, but I have error because cypress is reading as text, so if you have something like this Some title dummy text and if you have assertions for eg. cy.get('[data-testid="content"]').should('contain.text', 'Some title dummy text'); }); You will get error I already tried the following: should(have.text, 'Some title dummy text'), (include.text, 'Some title dummy text') and cy.get('[data-testid="content"]').contains('Some title dummy text') >>>>>>>>>is someone has solution for this?>>>>>>>>>