Writing my first cypress test in conjunction with percy visual tester. I load my landing page, check a few links and then take a percy snapshot. The issue is that the background image hasn't loaded in the snapshot.
I can get it to appear by artifically waiting before taking the snapshot, but I'd prefer to have a cypress assertion to check this instead.
Here is the css:
.bg-hero {
@include image("/images/background/landing.jpg", center);
}
Here is the html:
<div class="bg-hero bg top-header bg-header-top" id="#"></div>
I tried: cy.get('.bg-hero').should('be.visible');
Am currently using: cy.wait(3000);
thanks