cypress should not contain element code example Example: cypress have attribute Click to copycy.get('selector') .should('have.attr', 'aria-checked', 'true')