Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
Verifique el contenido del elemento javascript con Cypress

En nuestra aplicación, usamos IEP (abreviatura de Propiedad extendida del incidente) donde almacenamos datos. En la mayoría de los casos, almacenamos un valor como 'Sí' o 'Amsterdam' y tenemos que codificar para verificarlos.

Pero también tenemos ComplexIEPS que almacenan objetos Javascript, por lo que no hay JSON, un ejemplo:

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

¿Hay alguna manera de verificar completamente este IEP complejo? El código que usamos los IEP simples:

 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!