L'élément Cypress Check a un attribut

let $el = Cypress.$("myselector");
if ($el.attr("myattr") === "myvalue") {
    do.A();
} else {
    do.B();
}
Obnoxious Opossum