DEV Community

Cover image for Await, do not make your E2E tests sleep ⏳

Await, do not make your E2E tests sleep ⏳

Stefano Magni on July 29, 2019

I'm working on a big UI Testing Best Practices project on GitHub, I share this post to spread it and have direct feedback. When testing your UI...
Collapse
 
ramospedro profile image
Pedro

Great tips!

I've seen this kind of "fixed wait" in practice and it's not pretty.

Before we know it, we're facing a magical 15 seconds wait in a lot of different places.
This makes the test suite take more time than it should, thus leading to drag and wasting money on CI machines.

Collapse
 
noriste profile image
Stefano Magni

Sorry to hear about that, you end up hating E2E testing because of some bad practices 😓
BTW: thank you 😊