hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 1ee2dcb5a2 iOS: onboarding's practice finishes only on Hex's own input
David finished onboarding's practice with iOS's dictation (the system
mic at the bottom right), not Hex: the practice counted any three words
in its field once a keyboard had ever reported Full Access, so iOS's
dictation, or Apple's keyboard, passed it. Reproduced on an iOS 27.2
simulator: three words typed on Apple's keyboard showed "That's Hex".

What changed
- Words count as typed only when they arrive while Hex's keyboard is on
  screen (KeyboardPresence, from the previous change): iOS's dictation and
  other keyboards take Hex's keyboard off screen, so their text never
  counts. OnboardingPractice.isDone takes typedWithHex (the words Hex's
  keyboard was up for, never more than the field holds) in place of the
  field's word count; wordsAdded works out a change's new words.
- Text that arrives while Hex's keyboard is off screen shows "That came
  from iOS dictation or another keyboard, not Hex. Tap the Hex key on
  Hex's keyboard." and the practice doesn't finish; Hex's own input clears
  it, as does emptying the field. Only with Full Access (without it the
  Full Access note shows). zh-Hans string added; README.
- Unchanged: a dictation Hex's keyboard inserted (lastInsertedResultID)
  still finishes it at once, and snapshot fixtures count their text.

Verified (anomastudio, ad-hoc signed Debug build, iPhone 17 Pro iOS 27.2,
practice reached from first launch):
- Before: "See you at" typed on Apple's keyboard showed "That's Hex".
- After: the same text keeps "Your turn" and shows the note; switching to
  Hex and typing "we" clears the note and still isn't done; "go now" with
  Hex's keys shows "That's Hex".
- Tapping iOS's mic under Hex's keyboard takes Hex's keyboard off screen
  (the simulator has no microphone, so iOS's dictation inserted nothing).
- xcodebuild test (both changes): 620 passed, 1 skipped, 0 failures.
Not verified on a physical iPhone.
2026-11-21 12:17:06 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
CleanupTaggerTests.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37: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: 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
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
FullKeyboardEngineTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
HexKeyGestureTests.swift iOS: translation says when it pastes as spoken, retries, and never turns itself off (#2176) 2026-11-21 06:33:37 -05:00
KeyboardBridgeTests.swift iOS: onboarding's practice finishes only on Hex's own input 2026-11-21 12:17:06 -05:00
KeyboardLayoutTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SwipeDecoderTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TranscriptCleanupTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37: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