From ebab8d9fb9b1c7ddd9d56f9ed0d6367cdf4329b0 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 3 Sep 2026 02:37:30 -0700 Subject: [PATCH] Make Maestro keyboard dismissal Android-only (#58288) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Run the RNTester Image flow keyboard dismissal only on Android. Android needs this step because the keyboard obscures the platform test results control. On iOS, the keyboard can dismiss automatically before Maestro reaches `hideKeyboard`, causing the flow to fail with `Could not hide the keyboard`. This has occurred repeatedly in Maestro Cloud since https://github.com/react/react-native/issues/58272 landed; for example, [run 33517266090](https://github.com/react/react-native/actions/runs/33517266090/job/99902026553). The flow passed in Maestro Cloud iOS while the dismissal was absent, and the existing platform condition syntax is already used by the neighboring Image flows. ## Changelog: [INTERNAL] [FIXED] - Avoid dismissing an already-hidden keyboard in the iOS Maestro Image flow. Pull Request resolved: https://github.com/react/react-native/pull/58288 Test Plan: - `MAESTRO_CLI_NO_ANALYTICS=1 maestro check-syntax packages/rn-tester/.maestro/image.yml` — passed (`OK`) - `./node_modules/.bin/prettier --check packages/rn-tester/.maestro/image.yml` — passed - `git diff --check` — passed - Confirmed the Android dismissal remains present behind `platform: Android`. Reviewed By: christophpurrer Differential Revision: D118457013 Pulled By: cortinico fbshipit-source-id: a8cb212004be0d9eeeff40e148f5d5f7ebee393a --- packages/rn-tester/.maestro/image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/rn-tester/.maestro/image.yml b/packages/rn-tester/.maestro/image.yml index 5f1b102d3fd..576aac4895c 100644 --- a/packages/rn-tester/.maestro/image.yml +++ b/packages/rn-tester/.maestro/image.yml @@ -14,7 +14,11 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo id: 'example_search' - inputText: text: 'Image.getSize' -- hideKeyboard +- runFlow: + when: + platform: Android + commands: + - hideKeyboard - tapOn: id: 'platform-test-results' - assertVisible: 'Results'