blue-quill-43979
07/25/2022, 3:28 PMtypescript
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', '');
Thanks in advance!nutritious-honey-65632
07/26/2022, 12:33 PMmat-form-field but only one have textarea and that one appeared a bit later than others. cy.get will find first x elements and proceed to next chained command which is find and then find will try to find textarea inside existing set of elements that cy.get returned and it will not try to include elements that appeared a bit later. I hope this is clear enough.nutritious-honey-65632
07/26/2022, 12:35 PMblue-quill-43979
07/26/2022, 2:14 PM