A lot of text in that error. Have you tried invoking the iframe and asserting on one of the elements within > No I haven't because I need only to compare contents... I'm getting content from backoffice using query and I'm filtering that content through htmlStripper on this way Cypress.Commands.add('htmlStripper', html => {
var text = html.replace(/
]*>?/gm, ''); //replacing standard html tags
text = text.replace(/&/gm, '&'); // replacing the & character
text = text.replace(/\xA0/g, ' '); // replacing the non breakable space code with a space
text = text.replace(/ +/g, ' '); // replacing extra spaces with single space
text = text.replace(/’/gm, '’'); // replacing extra spaces with single space and that's why I'm getting content without iframe, but I have to find the way to filter somehow "Cypress content".... and to remove this iframe/function from it, because Cypress isn't doing it