A
A
Andre19972022-01-09 20:57:34
JavaScript
Andre1997, 2022-01-09 20:57:34

How to print text to console in cypress when match error occurs?

There is a block in which there is no word Игры
But it displays an error in the trailer that there is no such thing somewhere.
How can I display a log with my own text in the console, so that it is easier to understand what block we are talking about?
cy.wrap(item).should('include.text', 'Игры')

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question