hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 2548a1b876
iOS: the keyboard model's memory lines say their numbers, and Remove where it can't run (#2874)
* iOS: the keyboard model's memory lines say their numbers, and Remove where it can't run

What (card A213, approved by Ryan):
- The two memory causes carry their numbers, whole megabytes rounded down: "This iPhone's
  keyboard has 118 MB; the model needs 131 MB, so it uses Apple's speech recognition." (这台
  iPhone 的键盘有 %1$lld MB 内存,模型需要 %2$lld MB,因此使用 Apple 的语音识别。) from the
  limit the keyboard already records, and "The keyboard had 41 MB free when it last opened;
  loading the model needs 58 MB, so it used Apple's speech recognition. It tries again the
  next time it opens." (键盘上次打开时只有 %1$lld MB 可用内存,载入模型需要 %2$lld MB,因此
  使用了 Apple 的语音识别。下次打开时会再试一次。). The keyboard saves what was free with
  shortOfMemory (KeyboardParakeetSettings.keyboardStateFree, in the App Group it already
  writes; nothing is sent, Send feedback unchanged). Without a number (after a memory
  warning, an older keyboard, nothing measured) the lines keep today's words, never 0 MB.
- A switch turned on by hand no longer downloads where the keyboard measured under 131 MB
  (KeyboardParakeetDownload.downloads); Wi-Fi and free space stay skippable, and before the
  keyboard has ever opened it still downloads at once, as today.
- Remove (464 MB) (移除(%@)) where English's model is on the iPhone and the keyboard is too
  small for it: deleteKeyboardParakeet, what turning the switch off already deletes, with the
  switch left on, so the page then reads the too-small line, no button, and nothing downloads
  again. Never automatic; not while Hex dictates with that model; not for Multilingual, which
  Hex dictates with too. The size is the folder's files on disk.
- Snapshot scenes: toosmall now records 118 MB; toosmalldownloaded has the model on disk;
  short has 41 MB free.
Why: TestFlight 153, iPhone 14 (6 GB): the model was downloaded (by hand) but the keyboard
could never use it, and the page couldn't say on which numbers.
Verified: DictationSSOTTests (numbers, fallbacks, rounding, what the keyboard saves) and
DictationControllerTests (downloads by hand); suite and screenshots in a simbox, separately.

* iOS: the too-small snapshot scene dictates with Apple's speech recognition

What: settings-dictation-model-english-toosmalldownloaded sets Hex's own transcriber to
Apple's speech recognition, so English's model is the keyboard's alone there and Remove shows.
Why: in snapshots Hex keeps its initial Parakeet transcriber with the model ready, which
rightly hides Remove (Hex would dictate with it); an iPhone 14 on iOS 27 dictates with Apple's.
Verified: screenshot in a simbox.

* iOS: the too-small snapshot scene keeps Hex from preparing its own model

What: settings-dictation-model-english-toosmalldownloaded gives the controller the dictation
language the fixture stored (applyFixtureDictationLanguage), so Settings › Dictation doesn't
prepare a model for it as it appears.
Why: on the simulator, which has no Apple English model, that preparation picked Parakeet V2
for Hex itself, which rightly hid Remove; on an iPhone 14 Hex dictates with Apple's.
Verified: screenshot in a simbox.
2026-11-25 20:15:55 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AppleSpeechAssetReservationsTests.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
AutocorrectEngineTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
CleanupTaggerTests.swift iOS dictation: spoken numbers written in digits for every engine (Numbers as digits) (#2414) 2026-11-22 13:55:16 -05:00
CustomVocabularyTests.swift iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
DictationControllerTests.swift iOS: the keyboard model's memory lines say their numbers, and Remove where it can't run (#2874) 2026-11-25 20:15:55 -05:00
DictationLanguageTests.swift iOS: dictate Latin American Spanish with Latin America's model, and keep a picked variant when the keyboard switches (#2193) 2026-11-21 09:53:34 -05:00
DictationLearningTests.swift iOS tests: the live words' hold cases stop depending on the Mac's uptime (#2534) 2026-11-23 11:40:53 -05:00
DictationSSOTTests.swift iOS: the keyboard model's memory lines say their numbers, and Remove where it can't run (#2874) 2026-11-25 20:15:55 -05:00
DictationStateMachineTests.swift refactor(ios): simplify dictation capture phase, controller shims, and Parakeet wrappers\n\n- Slim KeyboardLocalCapturePhase to a read-only snapshot projection and remove its unused mutating state-machine helpers, StartupStage, ArmedFailure, ArmedReadiness, and KeepArmedOutcome\n- Remove duplicate DictationController.markModelReadyPreservingCapture(), unused keyboardSessionExpiresAt, and the redundant KeyboardJob enum wrapper in favor of String?\n- Point FullKeyboardView.offerModelNotice directly at KeyboardParakeetPlan.current().awaitsV2Download and delete legacy boolean-flattening shims (KeyboardParakeetNotice.modelAwaitsDownload, dictatesEnglish, and KeyboardParakeetDownload.hold(otherEngine:...))\n- Update DictationStateMachineTests, KeyboardBridgeTests, and DictationControllerTests to cover real snapshot projections, controller transitions, and KeyboardParakeetPlan (#2626) 2026-11-23 19:19:00 -08:00
DotScopeTests.swift fix(ios): show recording only once audio starts flowing (#2478) 2026-11-22 21:59:22 -08:00
EmojiPanelLettersKeyTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
EmojiShortcodeTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
EmojiSuggesterTests.swift iOS: "heart" offers ❤️; the whole-name rule moves into the emoji index (#2465) 2026-11-22 22:20:13 -05:00
FullKeyboardEngineTests+AdaptiveTouch.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
FullKeyboardEngineTests+Layouts.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
FullKeyboardEngineTests+Punctuation.swift iOS keyboard: Svenska, Apple's Swedish keys and long presses, the iPhone's sv dictionary (#2558) 2026-11-24 18:20:36 -05:00
FullKeyboardEngineTests+Suggestions.swift iOS keyboard: Open Hex as the last row of the Hex key menu (#2791) 2026-11-24 20:22:47 -05:00
FullKeyboardEngineTests+SwipeSpacing.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
FullKeyboardEngineTests+SwipeTyping.swift iOS keyboard: Apple's key flicks on the docked iPad (#2549) 2026-11-24 17:48:58 -05:00
FullKeyboardEngineTests+TrackpadAndLanguages.swift iOS keyboard: Slovenčina, on Czech's keys with Apple's Slovak long presses (#2462) 2026-11-24 18:21:24 -05:00
FullKeyboardEngineTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
GreeklishRomanizerTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
HangulComposerTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
HexKeyGestureTests.swift iOS keyboard: Open Hex as the last row of the Hex key menu (#2791) 2026-11-24 20:22:47 -05:00
HexWordsSharedCasesTests.swift iOS: Hex words files and Word replacements (behind Custom vocabulary) (#2782) 2026-11-24 18:58:06 -05:00
KeyboardBridgeTests.swift iOS 1.0.5: the 17 fixes from the quality reviews (#2862) 2026-11-25 19:24:59 -05:00
KeyboardClipboardTests.swift iOS keyboard: a Passwords chip in login fields (#2542) 2026-11-24 17:48:47 -05:00
KeyboardDuoCoverTests.swift ios: smaller key labels on the duo's cover screen (#2346) 2026-11-22 04:35:44 -05:00
KeyboardLayoutTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
KeyboardSwitchGuessTests.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
KeyboardThemeTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
LaggingField.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
SettingsHierarchyTests.swift iOS: What's new, once after an update (1.0.5) (#2859) 2026-11-25 19:37:56 -05:00
ShiftStateMachineTests.swift iOS keyboard: Hex's own number pad for number fields (#2541) 2026-11-24 17:48:35 -05:00
SwipeDecoderTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
TranscriptCleanupTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
TwoLanguageMergeTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
TwoThumbSelectionTests.swift iOS: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08:00
TypingGateReplayTests.swift iOS keyboard: Polish autocorrects with Hex's own model, word list and capitals (#2423) 2026-11-22 14:45:55 -05:00
TypingLogTests.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
TypingReplayTests.swift ios: swipe typing in more languages (off by default) (#2428) 2026-11-22 15:46:27 -05:00