hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 9e41970efe
iOS: both speech models download on Wi-Fi, with Use mobile data (#2846)
* iOS: both speech models download on Wi-Fi, with Use mobile data

What: Settings › Dictation › Model's two downloads now follow one rule
(SpeechModelDownloadNetwork). On Wi-Fi (KeyboardParakeetDownload.isUnmetered: not
cellular, a hotspot or Low Data Mode) a picked model downloads as before. Off Wi-Fi it
waits: English's line already said "Downloads on Wi-Fi."; Multilingual's now says the
same (ParakeetUltraDownload.State.waitingForWiFi) instead of starting at once. Both lines
get a Use mobile data action that starts that download now. Wi-Fi coming back starts a
waiting download by itself; a multilingual download running on Wi-Fi now stops where it
is when Wi-Fi goes (its files resume), as English's always did. Use mobile data is one
decision for that model's download, kept in the App Group until the model is on the
iPhone (a stop, Try again or relaunch carries on); picking the other model forgets it.
Multilingual's row text now reads "A 632.2 MB download on Wi-Fi." (zh-Hans updated);
the one new string is "Use mobile data" (zh-Hans 使用蜂窝数据). English's own network
monitor moved into SpeechModelDownloadNetwork, which both downloads observe.

Unchanged: a download already running on Wi-Fi; unpicked (the old model stays until the
new one is downloaded and has loaded once); picking English still stops and removes a
partial multilingual download; the keyboard extension and its notice; the Speech model
in keyboard switch turned on by hand still downloads English on any connection.

Why: TestFlight build 151 (no Wi-Fi at home): English waited for Wi-Fi but Multilingual
started a 632 MB download over mobile data the moment it was picked. Ryan's decision:
wait for Wi-Fi, with a Use mobile data button, as on Android.

Verified: tests in DictationControllerTests (both wait off Wi-Fi, Use mobile data starts
them, Wi-Fi returning starts a waiting one, leaving Wi-Fi stops one, both start at once on
Wi-Fi, picking the other model asks again); suite run separately.

* iOS: test that English picked mid-wait leaves a waiting multilingual download stopped

What: the multilingual Wi-Fi test now also stops a download waiting for Wi-Fi (what picking
English does) and checks Wi-Fi coming back doesn't start it, and that picking Multilingual
again waits again.
Why: the task asks for switching models mid-wait to be covered.
Verified: suite run separately.

* iOS: snapshot scenes for Settings › Dictation › Model's download states

What: --snap-state settings-dictation-model-<english|multilingual>-<waiting|downloading|ready>
opens Settings › Dictation with that model picked and its download in that state
(DictationController.applySpeechModelFixture, ParakeetUltraDownload.applyFixture(share:)).
Waiting goes through the real rule: with --simulate-cellular the connection reads as off
Wi-Fi and the keyboard limit is recorded, so only the connection holds the download.
SettingsSnapshotFixture.applyDefaults keeps Multilingual picked for -multilingual- scenes.
Why: screenshots of the Use mobile data row in each state; the simulator has no cellular.
Verified: scenes rendered in a simbox (screenshots in the PR).

* iOS: Model snapshot scenes record the keyboard limit only for waiting

What: settings-dictation-model-*-downloading and -ready no longer record a keyboard limit.
Why: with a limit and the simulator's Wi-Fi, English's real download started under the
downloading scene and finished during the screenshot run, so a later downloading shot
read Downloaded. Without a limit nothing downloads, as with Home's model-card scenes.
Verified: the 12 Model row screenshots retaken in the simbox.

* iOS: check the multilingual Wi-Fi test's resume request, not the last request

What: testAMultilingualDownloadFollowsWiFiComingAndGoing now checks the first two requests
are the fresh one and the bytes=800- resume, instead of the last request.
Why: the stub model has two files, so the last request is the second file's, with no range;
the suite failed on that assertion alone.
Verified: full suite rerun in the simbox.
2026-11-25 09:10:45 -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: both speech models download on Wi-Fi, with Use mobile data (#2846) 2026-11-25 09:10:45 -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 Settings: Dictation › Model picks English or Multilingual for the keyboard (#2709) 2026-11-24 17:28:50 -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: call Settings' unfinished features Labs (#2613) 2026-11-24 23:36:26 -08: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: tighten Settings information hierarchy, copy, and page split (#2450) 2026-11-22 18:35:27 -08: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