fix(test-app): handle sign-in cancellation and duplicate taps

Merged
TH
10d ago
+11-2

Summary

Preserve cancellation and single presentation in the hosted sign-in fixture added in #4708. Expo sends ERR_AUTH_SESSION_CANCELED on the rejection's code. A synchronous guard prevents a second tap from calling the native module while the first sheet is active, and clears when that attempt finishes. One fixture screen changes.

Addresses both Apex findings on #4708 (cancellation, duplicate taps).

Validation

  • A host probe executed the screen handler with a stub native promise and called the same rendered handler twice before either call settled. At 806f73c, it called the module twice and rendered error for the Expo cancellation. At 991325f, it called once, rendered canceled, accepted a new tap after cancellation, and distinguished a genuine error.
  • Fixture typecheck and diff checks passed at 991325f. The same patch on the original PR head passed formatting, the repository build, and simulator app repack. GitHub validates this commit.
  • Live sheet cancellation remains unverified. The T3 device inventory did not expose the disposable simulator, so the repacked app was not installed or run.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.