-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android feedback #334
Comments
Thanks for the feedback!! Regarding your points:
|
@rotemmiz thanks for the quick response!
Regarding the other features, are these on the road map?
|
|
|
There is no support inside webviews, but you can set a testID to that webview and use |
@rotemmiz thanks! That allows us to focus on the text input which opens up the keyboard. Is there anyway to tap keyboard keys? Also I am having problems interacting with native ScrollViews with no testID's ( This is how it appears in the Android view hierarchy:
|
Use the full java class name when you use by.type: |
@rotemmiz yup that works! Now I am getting a matcher error because there are 2 There seems to be a typo in the
Error:
|
Was already fixed on master. out in next release. |
@rotemmiz Awesome! I've fixed the typo locally, but get the following error when running:
I'm guessing you cant call Same happens with click and swipe too. |
It looks like we don't have e2e tests for Thanks! |
Cool, i've logged #337. Let me know if you need any other details. Going back to the iFrame, is there a way to access the hardware keyboard? |
Not that I am aware of, but we might need to take a look at UIAutomator/Espresso/EarlGray and add manual control over keyboard from |
Alright, cheers @rotemmiz. I'm moving house at the moment, but i'll try and find some time of the next few weeks to contribute! |
I'm facing similar issue (1) :
I'm using android.attached instead of android.emulator. Is there any workaround for this for me to test using physical device? |
Great work with Android guys!
I managed to get it working using this example as a starting point, but experienced a few issues along the way. Here are the issues I encountered and how I solved them in case anyone has them:
Error: Command failed: /Users/username/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell input keyevent 82 (exited with error code 137)
To get around this I changed to the Nexus_5_API_26 simulator in the package.json.
A long term solution so this works on all simulators could be adding a wait for simulator to finish loading before triggering this event?
To fix this we added the following to the app/build.gradle:
androidTestCompile 'com.fasterxml.jackson.core:jackson-core:2.8.7
We are using Google play services inside our app which displayed a popup when first loading up the simulator asking us to update. This blocked the interaction with the app resulting in all tests timing out.
To fix this problem we manually updated the simulator to the latest version of Google Play Services.
But overall our experience with Android has been fantastic! We are still experiencing issues with iOS and React Native Firebase (#270) so have moved our attention over to Android for the time being.
Some ideas for the future:
detox-cli
Environment
Thanks again guys and keep up the good work!
The text was updated successfully, but these errors were encountered: