I am trying write a visual regression test on a Iframe object, Some times the test failed because of the new screenshot have Cannot show snapshot While tests are running
. This error message come from Cypress rather than the code itself. This message display occasionally.
<code> cy.get('iframe[title="test-title"]').compareSnapshot({
name:'test-name'
});
</code>
<code> cy.get('iframe[title="test-title"]').compareSnapshot({
name:'test-name'
});
</code>
cy.get('iframe[title="test-title"]').compareSnapshot({
name:'test-name'
});
Besides, increasing test threshold, Is there any other way we can resolve this issue?