Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

83
Vistas
Check contents of javascript element with Cypress

In our application we use IEPs (it's short for Incident Extended Property) where we store data in. In most cases we store one value in it like 'Yes' or 'Amsterdam' and we have to code to check these.

But we also have ComplexIEPS which store Javascript objects, so no JSON, an example:

[
    {
        "anotherField": true,
        "location": "xxx",
        "post": "XXX",
        "description": "Whatever",
        "transport": "1234"
    }
]

Is there a way to completely check this complexIEP? The code we use the simple IEPs:

cy.get('.className').contains('td', iepName)
    .parent()
    .children()
    .should(($children) => {
        const value = $children[1].innerHTML;
        expect(value).to.include(` ${iepValue}`);
    });

});

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda