Creating custom ViewMatcher for espresso
Por Thiago Lopes Silva
Hello my friends. It’s been a while since I’ve been writing here, right ? let’s go further and learn how to create a custom ViewMatcher for espresso on specific scenarios of testing.
Before going further I recommend you to take a look at this post to learn a few about espresso and this one to learn about the Hamcrest library. It’s used a lot by espresso to match views and do tests that will be our focus on this post.
Sometimes when you are doing e2e tests you need to create custom Matcher that attend your business rules. I will tech you how to solve this particular problem using a great feature named ViewMatcher.
Given customer has tried to logged into his account When the internet is slow Then the button login must change it´s color to red
Leia o restante do post clicando aqui.