
Jhonny Córdova
PreguntaHola. Tengo un problema con el test de post. Cypress me informa lo siguiente:
**Uncaught FirebaseError: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field userName)
This error originated from your application code, not from Cypress.
When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
This behavior is configurable, and you can choose to turn this off by listening to the ‘uncaught:exception’ event.**
Así se ve el test. Qué no estoy viendo?
it('Debe crear un post', () => { cy.get('@userData').then((userData) => { cy.get('textarea').type(Cypress.env('postContent')) cy.contains('button', 'Crear').as('botonCrear') cy.get('@botonCrear').should('be.enabled') cy.get('@botonCrear').click() cy.contains('.col2 h5', userData.name).should('be.visible') cy.contains('p', Cypress.env('postContent')).should('be.visible') }) })

Adrian Estrada
Podria ser un problema de red, recuerda que esto usa internet para comunicarse con Firebase, verifica