In my case, I'm using CSS property padding-top: 50%
on an element.
When checking with Cypress like so:
cy.get(selector)
.should('have.css', 'padding-top', `${aspectPadding}%`)
It outputs the padding-top
value in pixels, similar to the Computed value in DevTools.
So the question is: Is there a way to check the value that is actually set in CSS, in my case 50%
?
Aucun commentaire:
Enregistrer un commentaire