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}`);
});
});