fix: restore sidebar-view testID visibility for Maestro#7319
Closed
diegolmello wants to merge 1 commit into
Closed
fix: restore sidebar-view testID visibility for Maestro#7319diegolmello wants to merge 1 commit into
diegolmello wants to merge 1 commit into
Conversation
PR #6918 (Voice support, cd2faa0) collapsed the SidebarView wrapper — the testID='sidebar-view' moved from a SafeAreaView to a ScrollView. On Android, React Native ScrollView's testID is not exposed to the native accessibility tree, so Maestro can no longer find the element. Confirmed via maestro hierarchy dump on a fresh experimental release build: sidebar-profile and other sibling testIDs are present, sidebar-view is absent. Affects 13 Maestro flows that wait for sidebar-view (profile, status, settings, user-preferences, change-avatar, i18n, e2ee, etc.). Fix: wrap the ScrollView in a View that carries the testID. Verified locally with Maestro 2.5.1 on the Medium_Phone_API_36 emulator — the Profile flow now progresses past the sidebar step.
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Walkthrough
ChangesSidebar View Wrapper
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
PR #6918 (Voice support, cd2faa0) collapsed the
SidebarViewwrapper —testID='sidebar-view'moved from aSafeAreaViewonto theScrollView. On Android, React Native'sScrollViewdoes not propagatetestIDto the native accessibility tree, so Maestro can no longer find the element. TheSafeAreaView(a regularView) did.Evidence:
maestro hierarchyon a freshapp-experimental-release.apkshowssidebar-profile,sidebar-chats,sidebar-settings, etc. present in the tree, butsidebar-viewabsent. Wrapping theScrollViewin a plainViewthat carries the testID restores accessibility-tree visibility without changing the layout (both usestyles.container→flex: 1).Affected flows (13 of them wait on
sidebar-view):profile.yaml,status.yaml,setting.yaml,user-preferences.yamlchange-avatar.yaml,i18n.yamle2ee/utils/navigate-to-e2ee-security.yamlassorted/utils/check-server.yaml,assorted/utils/nav-to-language.yamlIssue(s)
Unblocks shard 8 (Android) on #7311 — surfaces a real regression that #7311's CI stabilization work exposed.
How to test or reproduce
Medium_Phone_API_36).app-experimental-release.apk.maestro test .maestro/tests/assorted/profile.yaml --include-tags=test-8with Maestro 2.5.1.Before this fix: flow fails ~1m 33s in with
Assertion is false: id: sidebar-view is visible.After this fix: flow progresses past the sidebar step and gets ~3m 49s deep into the Profile flow (matching CI's failure point on #7311, which is a separate password-sheet issue tracked elsewhere).
You can also verify directly:
maestro --device emulator-5554 hierarchy | grep sidebar-viewreturns 0 matches on develop, returns the testID on this branch.Screenshots
n/a — accessibility-tree change, no visual diff.
Types of changes
Checklist
Further comments
Recommend landing #7311 first (it stabilizes the CI scaffolding that lets these flows actually run). With #7311 in place, this fix will turn shard 8's
sidebar-viewassertion green; the password-sheet failure visible in #7311's shard 8 logs is a separate issue not addressed here.Summary by CodeRabbit