monitoring: use inference fix branch by default; harden GUI chain ANR wait

Default BUILD branch fix-bank-withdraw-auto-exchange; dismiss System UI
ANR before confirm taps so low-RAM emulators fail less uselessly.
This commit is contained in:
Hernâni Marques 2026-07-17 21:22:45 +02:00
parent 2dfd40558a
commit 92695c0ee3
No known key found for this signature in database
6 changed files with 55 additions and 12 deletions

View file

@ -249,14 +249,30 @@ PY
click_through() {
local labels=("$@")
local i lab
for i in 1 2 3 4 5 6 7 8; do
local i lab misses=0
# Prefer dismissing ANR before hunting Confirm (low-RAM hosts thrash System UI)
for i in 1 2 3 4 5 6; do
if tap_text "Wait" 2>/dev/null || tap_text "Warten" 2>/dev/null; then
info "dismissed ANR (Wait)"
pause 2.0
misses=0
continue
fi
local hit=0
for lab in "${labels[@]}"; do
if tap_text "$lab" 2>/dev/null; then
hit=1
misses=0
pause 0.9
break
fi
done
pause 0.4
if [[ "$hit" -eq 0 ]]; then
misses=$((misses + 1))
# stop early if hierarchy has nothing useful (avoid burning order deadlines)
[[ "$misses" -ge 3 ]] && break
fi
pause 0.5
done
}