Why does cypress only loop through once inside the for loop?
Test code is this:
cy.get('body').contains('Automation').each(($el, index) => {
cy.get('body').contains('Automation').parents()
.eq(1)
.find('mfc-dropdown > div > mfc-button > button', { timeout: 6000 })
.first()
.click({ force: true });
cy.get(this.DELETE_FILE_BUTTON).click();
cy.get('.mfc-dialog-container')
.find(this.CONFIRM_DELETE)
.click({ force: true });
});