mercredi 6 mai 2015

BDD: Behat - How develop advanced behavior tests?

I'm using BDD to my application development since a few months... To do it i'm using Behat, and I'm facing a few problems... On my tests I need, sometimes, to wait for JS/CSS animations to go to the next step. Those animations changes the elements HTML visibility and I need to check if the element is visible to work on it. Currently I'm using setTimeout, JS function, by setting a arbitrary timeout, but I think there is a better way to do it. What you guys think? What can I do better to enrich my code?

Aucun commentaire:

Enregistrer un commentaire