Menu

1 / 3

The simulator has no camera: how I UI-test a KYC flow

DEV Community: ios·Vadim Toptunov·12 days ago
#cyBVgvJ6
#devtoios#devto#dev#document#test
Long article (1955 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.