I'm new to cypress and I'm trying to check that one of my elements contains a specific style. The element is something like this:
<div class="myElement" style="transform: translate(0%, 0px); "></div>
An this is my assertion:
cy.get('.myImage').should("have.css", "transform", "translate(0%, 0px)");
This assertion is not working, but I cannot figure out why, cypress says:
expected <div.myImage> to have CSS property transform with the value translate(0%, 0px), but the value was none
What am I doing wrong?