omadahealth / LolliPin

A Material design Android pincode library. Supports Fingerprint.
MIT License
1.61k stars 425 forks source link

Disabling PIN screen for Espresso tests #189

Open noloman opened 5 years ago

noloman commented 5 years ago

Hi!

first of all congratulations for the amazing library! I'm using it and it works flawlessly!

I wanted to ask you guys if there's a nice way to disable the PIN code screen for the Espresso tests? I don't want to have to write any logic in my tests for checking whether the pin screen is being shown at the moment, but I would like all my espresso tests to be running and not having to run into the PIN screen.

Thanks!

alexkeramidas commented 5 years ago

Well if you don't set a pin or set the timeout to quite large you should not have that issue right?

noloman commented 5 years ago

Well if you don't set a pin or set the timeout to quite large you should not have that issue right?

sorry for the late reply!

Well indeed, that's possible, but I can only achieve that if I completely uninstall the app, and run the Espresso tests. That's why I was wondering if there was a better way? or somebody found a better way?

Thanks!