If you ever tried writing Espresso tests by hand, you probably know the code can get pretty nasty, pretty quickly.

As long as you’re just matching views by their ids and performing a single action, everything looks nice and straightforward.

But when you try to do something more complicated, your code can lose a lot on its readability:

Cortado — can greatly reduce the method nesting needed for Espresso, leaving you the code that is more fluent and much easier to read: