You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detox tests run very slowly on android emulator and it causes element.tap() to be interpreted as a longPress().
Because of this, a part of my tests can't pass even if manually, the same behavior works perfectly.
I'm running the tests on a production build, and the app itself is not that slow, at all.
To give you an idea of how slow it is: for instance, swiping in a ViewPagerAndroid takes up to 8s with Detox tests (it runs at like ~1fps) while it is perfectly smooth doing it manually.
I could change the delayLongPress to more than 3000ms but if I could avoid to do that just for the tests, it would be great.
it('should have personRow for 123456789',async()=>{awaitexpect(element(by.id('123456789_PersonRow'))).toBeVisible();})it('should tap personRow for 123456789',async()=>{awaitelement(by.id('123456789_PersonRow')).tap();})
Detox, Node, Device, Xcode and macOS Versions
Detox: 7.3.7
React Native: 0.56.0
Node: 8.11.2
Device: Android 7.1.1
macOS: 10.13.5
Device and verbose Detox logs
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxAssertion"},"method":"assertMatcher","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"android.support.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["123456789_PersonRow"]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":5}
detox verb ws onMessage: {"type":"invokeResult","params":{"result":"(null)"},"messageId":5}
detox verb ws
✓ should have personRow for 123456789
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.EspressoDetox"},"method":"perform","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"android.support.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["123456789_PersonRow"]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"android.support.test.espresso.action.ViewActions"},"method":"click","args":[]}}]},"messageId":6}
detox verb ws onMessage: {"type":"invokeResult","params":{"result":"(null)"},"messageId":6}
detox verb ws
✓ should tap personRow for 123456789 (2058ms)
The text was updated successfully, but these errors were encountered:
Description
Detox tests run very slowly on android emulator and it causes element.tap() to be interpreted as a longPress().
Because of this, a part of my tests can't pass even if manually, the same behavior works perfectly.
I'm running the tests on a production build, and the app itself is not that slow, at all.
To give you an idea of how slow it is: for instance, swiping in a ViewPagerAndroid takes up to 8s with Detox tests (it runs at like ~1fps) while it is perfectly smooth doing it manually.
I could change the
delayLongPress
to more than 3000ms but if I could avoid to do that just for the tests, it would be great.Steps to Reproduce
It's quite simple actually
React native code:
Detox code:
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: