From 368e8e1d65f7a64bbd3deaa7cc6e1ce8e75bc8c4 Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Thu, 15 Oct 2026 11:45:41 +0000 Subject: [PATCH] ci: type in the simulator without capitals, corrections or predictions Set in com.apple.Preferences right after boot, before the app first shows the keyboard, so typed links (C4) and nonsense words (D10) reach the app as typed. The smoke test still compares typed text ignoring case. --- scripts/ci/ios-sim/smoke-test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ci/ios-sim/smoke-test.sh b/scripts/ci/ios-sim/smoke-test.sh index 357e5af473..9b41a143b4 100755 --- a/scripts/ci/ios-sim/smoke-test.sh +++ b/scripts/ci/ios-sim/smoke-test.sh @@ -27,6 +27,10 @@ if [ -n "${GITHUB_ENV:-}" ]; then fi xcrun simctl boot "$SIM_UDID" xcrun simctl bootstatus "$SIM_UDID" -b +# the keyboard types exactly what it is given: no capitals, corrections or predictions +for key in KeyboardAutocapitalization KeyboardAutocorrection KeyboardPrediction; do + xcrun simctl spawn "$SIM_UDID" defaults write com.apple.Preferences "$key" -bool false +done open -a Simulator --args -CurrentDeviceUDID "$SIM_UDID" xcrun simctl spawn "$SIM_UDID" log stream --level debug --style compact --predicate 'process == "SimpleX"' > "$UI_OUT/app.log" 2>&1 & @@ -113,7 +117,7 @@ sleep 5 "$ui" type "$search_text" sleep 2 "$ui" shot search-typed -# the keyboard capitalizes the first letter +# the keyboard may still capitalize the first letter expect_in_tree -iF "\"$search_text\"" expect_in_tree -F '"Search in Directory"'