trackslash
VAULT-130 P3 Needs a human

Fix the encrypted note UI test that hangs as iOS's Passwords bar resizes the keyboard

0
All issues

Description

Found 2026-10-11 while validating VAULT-128's PR B (#741). It was also seen once on #733.

EncryptedNoteTests.test_encryptedNote_opensOnlyWithItsPasswordAndLocksAgainWhenClosed sometimes hangs at its first typeText into the item's password field. XCTest waits for the app to go idle, logs "App animations complete notification not received" after 60 s, and the test restarts. The validation run then fails.

What happens

  • Cause: focusing the field brings up the keyboard at 320 pt, which then resizes to 347 pt for iOS's "Passwords" QuickType bar. XCTest asks to be told when animations are idle 24 ms into that resize. Sometimes it's never told. In passing runs, the same resize happens and XCTest hears back about 0.37 s later.
  • The app is idle meanwhile: 0.4 s of CPU in 60 s, with nothing of Vault's running. No key derivation or decrypt has started yet.
  • It happens on main too: abf19d18 hung once in a 30-iteration run.
  • Rate: about 1–4% of iterations here, in bursts. Proving a fix needs hundreds of iterations.

Decision for Bradley

The one lever on the app's side is the Passwords bar itself. Should Vault's secret fields offer iOS Passwords at all?

  • That covers an item's password, a backup password, and the App Lock Password.
  • iOS offers to fill passwords there, and may offer to save them to iCloud Keychain.
  • If not, set the fields' text content type so iOS doesn't treat them as login passwords. That would also stop the keyboard resizing mid-show.

Done when

  • Bradley has decided about the Passwords bar.
  • The test runs at least 200 iterations without hanging, with no added waits or weakened checks.

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

0
No comments.