This is my code:
try {
cy.get('.hello-bar-contentwrap')
.should('have.css','padding-top','28px')
.should('have.css','padding-right','37px')
.should('have.css','padding-left','37px') }
What I Intend to achieve is that CSS - Padding bottom should check for a range for ex. From 18px to 21px so that I can pass the case which is as failed below:
Something like this:
.should('have.css','height', expect('48px').to.be.closeTo('47','49'))
Issue screenshot