android / android/identity-samples
How to Write Automated Tests for Google Password Manager in an Android App?
- Dominant language
- Kotlin
- Stars
- 515
- Forks
- 283
- Avg merge
- 9h 37m
- Merged PRs (30d)
- 2
Description
I am developing an Android app with a login feature that utilizes passkeys. I would like to write automated tests for this part of the app where the Google Password Manager shows up.
Here is the flow I want to test:
1- Click on "Login with Passkeys".
2- The Google Password Manager shows up.
3- Mock the response from the Google Password Manager with success.
4- User lands on the next screen.
I am looking for guidance on how to achieve this. **Specifically, how can I mock the response from the Google Password Manager in my automated tests?**

Contributor guide
Research direction
No repository files or tests are named. Begin by tracing the Android passkey login flow used by the sample, then determine the supported way to exercise or mock the Google Password Manager step and document a reproducible automated test with a clear success-screen assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- authentication, mobile, testing
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100