I want to automate some tests for biometric login on the Android Emulator.
I’ve written tests that use the fingerprint touch feature, but there’s a fragile precondition:
The fingerprint must be manually enabled on the emulator before I can launch the test.
So, I want to add two more functions:
- Method to check the biometric status on device
- Methods to enable/disable the biometric on device
The sequence for my test should be as follows:
launch Application open Login Page check Biometric device Settings then Biometric is DISABLED (by default) when Login then Biometric login popup doesn't appears when Logout and I ENABLE biometric on device settings and Login then Biometric login popup is showed