Me gustaría esperar hasta que angComponent.gridApi no tenga el valor undefined .
No estoy seguro, pero creo que la variable angComponent no se actualiza.
cy.getAngularComponent(tableGrid).then((angComponent) => { cy.get(angComponent.gridApi).should('not.contain', undefined); });Si cree que la variable angComponent no se actualiza, debe cambiar .then() a .should() . Cypress lo volverá a intentar por usted.
cy.getAngularComponent(tableGrid) .should((angComponent) => { expect(angComponent.val()).not.to.eq('') })