Identity verification is a flow most fintech apps have, and one that's awkward to test. You pick a document, point the camera at it, take a selfie, wait, and get a verdict. On a simulator, the first step already fails: there's no camera.
So KYC often ends up tested by hand, on a real phone, with someone's real passport, or not past "the SDK screen opens".
I wanted to see how much of it can be tested automatically, so I added a mock KYC flow to ChaosBank , my practice banking app with switchable bugs ( intro post ). It has the same steps a real one has, four bugs in the places where real KYC goes wrong, and seven UI tests that catch them.
What the flow looks like
Card → Verify identity . You choose a passport or an ID card, scan it, take a selfie and submit. The result is one of three: Identity verified , Verification failed with a reason, or Under review .…