testing font-weight with cypress should assertion code example Example: cypress have attribute cy.get('selector') .should('have.attr', 'aria-checked', 'true')