The next code always passes while running cypress open but never passes when running cypress run. In both cases we use Electron 94.
Do you have any possible idea of how that can happen?
cy.contains('.pack-title', statut)
.next('div')
.find("mat-expansion-panel-header")
.click();
cy.get("mat-form-field")
.find("textarea")
.should('be.visible').and('contain', '');