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.
This commit is contained in:
spacedandy-agents-simplex committed 2026-10-15 11:45:41 +00:00
1 parent 8e600e5c98
commit 368e8e1d65
1 file changed
+5 -1
+5 -1
View File
@@ -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"'