.ad files cannot reach off-screen elements, and test --platform skips files without a platform header
I maintainer di solito rispondono entro 1 giorno
@thymikee ci sta già lavorando.
Dal 5/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- cli
Direzione di ricerca
Start in the replay/.ad parser and the command flag table where scroll --until is marked recorded: false; the scroll handler is what rejects the extra argument, and wait --raw fails through the same argument splitter. For part 2, find where test --platform assembles the internal missing platform metadata skip reason and where the user-facing No replay tests matched error is built. Part 3 is a flag table for help scripting. Done means scroll down --until 'id="x"' works inside a .ad file, the platform error names the skip reason, and the docs list which CLI flags are valid in .ad files.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I use agent-device test with .ad files to replay example apps on an Android emulator and an iOS simulator. Three things make long screens hard to replay in a deterministic way. Version: 0.21.20.
1. .ad files cannot reach an off-screen element
wait, is, and press only see elements that are on screen. That is fine. But I cannot get an element on screen in a .ad file in a viewport-independent way:
scroll down --until 'label="ok:ready"'works from the CLI. In a.adfile it fails withscroll amount must be a number, because--untilis not parsed (it isrecorded: falsein the flag table).wait id="x" --rawandwait --raw id="x"both fail in a.adfile (is followed by unexpected extra arguments/mixes plain word "--raw").
So a .ad file has to use fixed scroll down steps. They pass on one screen size and fail on another. Example: the same flow passed on a Medium Phone emulator and failed on an iPhone 17 simulator, because the target button was one page lower.
Repro:
open "com.example.app" --relaunch
scroll down --until 'id="far-button"'
press id="far-button"
close
Expected: the scroll repeats until far-button is visible, as it does in the CLI.
Actual: scroll amount must be a number.
Request: support --until <selector> for scroll in .ad files (and replays), or give .ad files another way to bring a selector on screen.
2. test --platform skips files that have no platform metadata
agent-device test e2e/*.ad --platform android --serial emulator-5554 fails with No replay tests matched for --platform android. when the .ad files have no platform header. Without --platform the same files run on that serial. The skip reason (missing platform metadata for --platform android) is only in the internal entry, not in the error the user sees.
Request: when --serial or --udid already selects the device, treat header-less files as runnable on that platform, or say in the error that the files were skipped because they have no platform header, and how to add one.
3. Docs
I could not find the .ad syntax for flags per command, or a list of which CLI flags work inside .ad files. A short table in help scripting would have saved me some time.
Thanks for the tool. My workaround for 1 is an accessible element that stays on screen and carries all result values in its label. It works, but it means changing the app for the test runner.
- Lingua principale
- TypeScript
- Stelle
- 4.8k
- Fork
- 315
- Merge medio
- 11h 37m
- PR unite (30g)
- 556
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/agent-device
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
callstack/agent-device#1869 ·
I maintainer di solito rispondono entro 1 giorno
-
iOS: type/fill still reads its pre-focus element after the focus tap, ending the runner sessionApertabug needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
callstack/agent-device#3238 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
callstack/agent-device#3229 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(apple-runner): fence prep spawns after teardown or last-waiter cancellationForse già presa @thymikee l’ha presa oggi. Apertaneeds-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
callstack/agent-device#3220 ·
I maintainer di solito rispondono entro 1 giorno
-
Explicit macOS surface is lost from recorded actions and replay scriptsForse già presa @janicduplessis l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
callstack/agent-device#3216 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstack/agent-device
Issue simili
-
area/dashboard kind/bug QA/dev-automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
rancher/dashboard#19379 · 2 commenti ·
I maintainer di solito rispondono entro 5 giorni
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesApertaarea/core bot:bug bot:working
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
emdash-cms/emdash#3905 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
lingdojo/kana-dojo#31728 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))Forse già presa @zjncs l’ha presa oggi. Apertacomponent:tokenless
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
agentic-os-org/ANOLISA#6112 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rjsf-team/react-jsonschema-form#5439 ·
I maintainer di solito rispondono entro 1 giorno