-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Issue in testing button inside bottom sheet modal [v.1.3.3] #1493
Comments
Same here. Assigning a testID doesn't work either. |
In my case tapping on text works in following way:
However it does not work with an id... |
same here too... |
Same here! When I try tapping something in Maestro studio, it only gives me some container view: Reproduction repo: Bug over at bottom-sheet: Environment info
Steps To Reproduce
Describe what you expected to happen: Reproducible sample codeStefanWallin/Maestro-character-bug#1
|
This might (my knowledges of accessibility roles being limited to my own experience) be a side-effect of the default attributes introduced by the BottomSheet component in 4.6.0: https://github.com/gorhom/react-native-bottom-sheet/pull/1288/files#diff-5a2db14facf13a3da647cb85a27700e0cddade0c6a5e136428e7e63fea4ac242R39 I believe it can be worked around by overriding import { Platform } from 'react-native';
import { BottomSheetModal } from '@gorhom/bottom-sheet';
<BottomSheetModal
accessible={Platform.select({
// setting it to false on Android seems to cause issues with TalkBack instead
ios: false
})}
// ...
>
// ...
</BottomSheetModal> |
@flo-sch that worked. Thank you. |
NOTE: it seems that I am unable to select text components on Android within the modal for some reasons. Digging into that. |
Indeed this seems to be an instance of the situation described here: https://maestro.mobile.dev/platform-support/react-native#interacting-with-nested-components-on-ios Going to close this out as the correct solution is described above. Please let us know if this didn't end up resolving the issue! |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Describe the bug
I have an app which uses bottom sheet modal https://github.com/gorhom/react-native-bottom-sheet
I am trying to test a button rendered inside the bottom sheet (the user clicks on text called "Find out" and then the bottom sheet modal opens that has a button "Getting Started"
I have added assert for tapOn: - tapOn: "Getting started". but the test fails, i have tried master studio but it can't inspect the bottom sheet it shows the bottom sheet as component and i can't inspect any of it is children
To Reproduce
create react native app
install bottom sheet from npm https://github.com/gorhom/react-native-bottom-sheet
use the bottom sheet in your app and try to inspect any of it is children
Workspace (if applicable)
Please share your workspace with Flow files and application binary if you are able to do so as that greatly helps in reproduction efforts.
Bugreport output (if applicable)
The zip files created when
maestro bugreport
can be uploaded here as well if applicable.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: