Skip to content

fix(e2e): biometric test checks the system prompt; retries start at Home (Kotlin twin) - #8

Merged
pbertsch merged 2 commits into
feat/android-native-twinfrom
fix/twin-biometric-suites-kotlin
Nov 12, 2026
Merged

pbertsch merged 2 commits into
feat/android-native-twinfrom
fix/twin-biometric-suites-kotlin

Conversation

@pbertsch

@pbertsch pbertsch commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Biometric test checks the system prompt. Before each biometric step the test asserts that the system prompt ("Sign in to your account") is on screen. Before, the no-match half could pass through the not-enrolled path, where the sign-in button shows "Authentication failed" with no prompt.
  • Retries start at Home. A file-level on failure hook taps back_button. Every native screen except Home has one, so a failed attempt on Biometric or Dashboard returns to Home before the retry. On Home the tap fails and the failure is ignored, because hooks are best-effort.
  • One-time setup is recorded in the header. The fingerprint enrolment steps used on the test emulator are listed, and the header says to start from a fresh app process.
  • Stacking: this PR targets feat/android-native-twin (PR feat: native Android (Kotlin/Compose) twin for native-verb testing #4) and changes only native/android-kotlin/probe-tests/native_twin_suite.probe. It must merge before, or into, PR feat: native Android (Kotlin/Compose) twin for native-verb testing #4.

Test plan

  • probe lint on the suite: valid, 12 tests.
  • Head 0e3130474097fcf68d934d2f97e96b79750e9056 on ProbeRepro-API35 (emulator-5590), fresh app process, agent port 48800, -v: 12 of 12 pass in each of three runs (5m17.7s, 5m16.2s, 5m18.4s; exit 0, no hang). The biometric test passes on its first attempt.
  • Hang reported in review: not reproduced in 3 of 3 runs at 0e31304. Cause not determined. The commit after it (cd3dfe0) changes only the header comment; the tests above ran on 0e31304.
  • Retry check on a scratch copy, not committed: the biometric test is forced to fail on the Biometric screen after tap native "nav_biometric". The retry reaches the forced step again, so it started at Home, not at the tile.
  • Disclosure scan on the commit range and PR text: clean.

How the run was made

  • CLI: built from flutter-probe origin/main at edfe69c (VERSION 0.26.1, go build with internal/cli.Version=0.26.1).
  • Command, from the worktree root: timeout 360 <probe> test native/android-kotlin/probe-tests/native_twin_suite.probe --config <config> --device emulator-5590 -v
  • Config (not committed): platform: android, app: com.alphawavesystems.probe_test_app, agent.port: 48800, reports_folder: reports.
  • Before each run: am start of the Flutter host app, then am force-stop and am start of the native app, so each run starts at Home in a fresh process.
  • The device's installed host app reports agent 0.25.2, so the CLI prints a version-mismatch warning on each run. It goes away when the host app is rebuilt from a current probe_agent.

Setup and limits

  • The biometric tests need one fingerprint enrolled on the emulator. Steps are in the header. The lock PIN is a test value on a throwaway emulator.
  • Covered: the native Home tiles, the login, item, gesture, device, visual, dynamic, signal, API and settings tests, and the biometric match and no-match flow on one Android emulator.
  • Not covered: the ATT alert and the notification path, which this suite does not exercise; the iOS suite (see PR fix(e2e): biometric tests call enroll biometric as a step (SwiftUI twin) #7, which is blocked by N-2).
  • The CLI prints a version-mismatch warning on every run (CLI 0.26.1, agent 0.25.2).
  • A run that does not restart the native app leaves the Items search filter applied, so the next item-list test fails. Start from a fresh process.

🤖 Generated with Claude Code

…Home (Kotlin twin)

The biometric test now checks that the system prompt appears before each
biometric step, so the no-match half no longer passes through the
not-enrolled path. A file-level on-failure hook taps back, so a retry starts
at Home instead of on the screen the failed attempt left. The header records
the one-time fingerprint enrolment used on the test emulator.
@pbertsch
pbertsch merged commit 668d5a6 into feat/android-native-twin Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant