Is there a way to test an asynchronous API
Closed this issue · 2 comments
mxk1235 commented
our APIs are asynchronous, meaning we create an entity, and then need to wait for it to actually become available. For example, is there a way to repeatedly hit an endpoint until it returns a 200 instead of a 404?
thanks in advance!
mxk1235 commented
i suppose i am asking for the correct way to combine chakram with wait-until https://www.npmjs.com/package/wait-until
dareid commented
Any promise based library should be easily built into a chakram test. I found https://www.npmjs.com/package/wait-until-promise which may fit nicely with chakram