Given a response like this:
{
"list" : [ { "field1" : "value1"}, { "field1" : "value2"}, { "field1" : "value3"} ]
}
I need to assert in retry until that list contains at least { "field1" : "value1"} and { "field1" : "value2"}
Unfortunately all Karate nice stuff like match cannot be used in retry until and I don't know how to do it in JS (in fact, I don't know which JS is used there, what features supports, what .js scripts are in context, etc)
PD: I can't assert that condition in Then because, since the response will change across time, I really need the polling feature.
Thanks in advance.