fix android e2e flow failures: matchers, timing, media seeding, gestures

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-07-19 14:47:37 +03:00
parent 056a671d62
commit bc72ad4733
11 changed files with 146 additions and 36 deletions
+10
View File
@@ -153,6 +153,16 @@ if [[ "$platform" == "android" ]]; then
phase "Configuring Android localhost routing"
adb -s "$device_id" reverse tcp:3000 tcp:3000
adb -s "$device_id" reverse tcp:8081 tcp:8081
# The e2e media picker mock reads a seeded photo from the app's external
# files directory (see src/lib/media/picker.e2e.tsx). The app must already
# be installed (the install step runs before this script), so the directory
# exists and is owned by the app; sdcardfs makes it world-readable so the
# mock can read the file without any runtime media permission.
phase "Seeding e2e media"
e2e_media_dir="/sdcard/Android/data/xyz.blueskyweb.app/files/e2e"
adb -s "$device_id" shell mkdir -p "$e2e_media_dir"
adb -s "$device_id" push assets/images/welcome-modal-bg.jpg "$e2e_media_dir/test.jpg"
fi
phase "Running Maestro flows"