Android E2E CI's Maestro 2.6.1 types a space for `pressKey: tab`
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 78/100
研究方向
閱讀 .github/actions/maestro-android/action.yml,檢查 Android E2E CI 使用的 Maestro 版本,接著執行連結的重現程式,或檢查其流程中的 pressKey: tab。確認 Android 上的行為,並與 Maestro 2.12.1 下所述的預期行為比較。當 CI 設定不再使用會在按 Tab 時輸入空格的版本,且 Android 上的 Tab 導覽符合預期時,工作即告完成。
由索引模型根據 Issue 內容生成。
描述
Description
.github/actions/maestro-android/action.yml installs Maestro 2.6.1:
run: export MAESTRO_VERSION=2.6.1; curl -Ls "https://get.maestro.mobile.dev" | bash
On Android, Maestro 2.6.1's pressKey: tab sends keyevent 62, KEYCODE_SPACE, rather than 61, KEYCODE_TAB (AndroidDriver.kt L307, sent at L319). So in test_e2e_android_rntester, a flow that presses Tab in RNTester types a space into the focused TextInput, and keyboard focus stays on it. No flow on main presses Tab yet; one that tests Tab navigation cannot pass under this pin.
Maestro sends 61 since mobile-dev-inc/Maestro#3679, first released in cli-2.12.0 (AndroidDriver.kt L310 at cli-2.12.0).
#59048's keyboard-focus-exclusion.yml met this in Test All, where its pressKey: tab typed a space, so that flow presses the D-pad instead.
Steps to reproduce
- On an Android 15 emulator (
google_apis, x86_64), install therntester-releaseartifact'sapp-arm64-v8a-release.apkfrom amainTest All run, the APKtest_e2e_android_rntesterinstalls. - Install Maestro the way the action does:
export MAESTRO_VERSION=2.6.1; curl -Ls "https://get.maestro.mobile.dev" | bash. - Open
rntester://example/TextInput/uncontrolledComponent. - Run a flow that taps
uncontrolled-textinput, runseraseText, thenpressKey: tab. - Read the TextInput's text and focus (
adb shell uiautomator dump).
./reproduce.sh in the reproducer does all of this with one emulator or device on adb: it takes the newest main commit whose Test All run passed, reads the Maestro version that commit's maestro-android/action.yml installs, downloads that run's rntester-release APK, and installs Maestro into its own folder. It exits 1 while Tab types into the TextInput and 0 once the TextInput stays empty.
Expected: pressKey: tab types nothing into the TextInput and moves keyboard focus off it, as the same flow does under Maestro 2.12.1 (REPRO_MAESTRO_VERSION=2.12.1 ./reproduce.sh).
Seen: the TextInput holds a space and keeps focus:
after tapOn + eraseText: uncontrolled-textinput text="" focused=true
after pressKey: tab: uncontrolled-textinput text=" " focused=true
React Native Version
0.90.0-nightly-20261120-bbfd39149
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
host: MINGW64_NT-10.0-26300 3.6.10-5a1665c8.x86_64 x86_64; openjdk version "17.0.20.1" 2026-08-18 LTS; Android Debug Bridge version 1.0.41
device: Android 15 (API 35), ABIs x86_64,arm64-v8a, input method com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
Stacktrace or Logs
react-native main bbfd391496baa6e0461262f76f1ae9a819a7ecd2, Test All run https://github.com/react/react-native/actions/runs/44614513110
.github/actions/maestro-android/action.yml at bbfd391496: export MAESTRO_VERSION=2.6.1; curl -Ls "https://get.maestro.mobile.dev" | bash
APK: rntester-release/app-arm64-v8a-release.apk, 12599927 bytes
Maestro CLI: 2.6.1
device: Android 15 (API 35), ABIs x86_64,arm64-v8a, input method com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
opened rntester://example/TextInput/uncontrolledComponent in com.facebook.react.uiapp
after tapOn + eraseText: uncontrolled-textinput text="" focused=true
after pressKey: tab: uncontrolled-textinput text=" " focused=true
SUMMARY: Maestro 2.6.1, pressKey: tab typed " " into the TextInput it had focused (focused=true after it) on react-native main bbfd391496
MANDATORY Reproducer
https://github.com/YevheniiKotyrlo/rn-ci-maestro-tab-types-space
Screenshots and Videos
No response
- 主要語言
- C++
- 星號
- 127k
- 分支
- 25.5k
- 平均合併
- 3 天 17 小時
- 30 天內合併 PR
- 302
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react/react-native 的其他 Issue
-
Needs: Attention Needs: Version Info Platform: Android Platform: tvOS
難度 2/5 1-3 小時 新手友好度 72/100
react/react-native#60180 · 3 則留言 ·
維護者通常 2 天內回覆
-
Android: with view recycling on, a recycled View keeps its nextFocusLeft可能已有人在做 @lazerg 今天認領。 未關閉Needs: Triage :mag: Platform: Android
難度 2/5 1-3 小時 新手友好度 78/100
react/react-native#60167 ·
維護者通常 2 天內回覆
-
Needs: Author Feedback Needs: Repro
難度 2/5 1-3 小時 新手友好度 74/100
react/react-native#60091 · 1 則留言 ·
維護者通常 2 天內回覆
-
Needs: Triage :mag:
難度 2/5 1-3 小時 新手友好度 70/100
react/react-native#60000 ·
維護者通常 2 天內回覆
-
`yarn test-ios` exits before building RNTester: `objc-test.sh` launches the WebSocket server script #59433 deleted可能已有人在做 @lazerg 於 8 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
react/react-native#59939 ·
維護者通常 2 天內回覆
查看 react/react-native 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 79/100
tenstorrent/tt-umd#4017 ·
維護者通常 3 天內回覆
-
difficulty:easy func:gui prio:low type:bug
難度 2/5 1-3 小時 新手友好度 72/100
NatronGitHub/Natron#1538 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
hyprwm/hyprsunset#103 · 1 則留言 ·
-
Feature request
難度 2/5 1-3 小時 新手友好度 65/100
qbittorrent/qBittorrent#25338 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
維護者通常 1 天內回覆