Comments (13)
@gosha212 compileSdkVersion = 33
gradle: 7.4.2
the rest you can see yourself here, its opensource: https://github.com/BlueWallet/BlueWallet/tree/master/android
from detox.
renovate bot just sent us a new PR, bumping Detox to 20.14.8
BlueWallet/BlueWallet#5970
in a changelog I see Fixed crash caused by new version of Espresso (3.5.1) by [@gosha212](https://togithub.com/gosha212) in [#4305](https://togithub.com/wix/Detox/issues/4305)
and e2e test passed on those issues I posted in this ticket (but failed on smth else, looks urelated and like smth i should just fix on our end)
soo looks very promising! I will doublecheck, fix the faulty test and will report back
from detox.
Hi @Overtorment,
Can you share what is your version of AGP and what is your compile sdk version?
from detox.
solved
from detox.
@Overtorment thanks for the detailed report! Indeed this looks like there could be further ProGuard rules we might have missed with the bump to the newer Espresso
. @gosha212 WDYT? Could you take care of it?
from detox.
12-24 12:25:19.924 17808 17887 D DetoxWSClient: Received action 'invoke' (ID #6, params={"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxAssertion"},"method":"waitForAssertMatcher","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"androidx.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["SelfTestOk",{"type":"boolean","value":false}]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForSufficientlyVisible","args":[{"type":"Integer","value":75}]}},{"type":"Double","value":300}]})
12-24 12:25:19.924 17808 17885 I DetoxDispatcher: Handling action 'invoke' (ID #6)...
12-24 12:25:19.925 17808 17885 D Detox : class com.wix.detox.espresso.DetoxMatcher, matcherForTestId, [SelfTestOk, false]
12-24 12:25:19.926 17808 17885 D Detox : class androidx.test.espresso.Espresso, onView, [(view.getTag() is "SelfTestOk" and view has effective visibility <VISIBLE>)]
12-24 12:25:19.926 17808 17885 D Detox : class com.wix.detox.espresso.DetoxMatcher, matcherForSufficientlyVisible, [75]
12-24 12:25:19.926 17808 17885 D Detox : class com.wix.detox.espresso.DetoxAssertion, waitForAssertMatcher, [androidx.test.espresso.ViewInteraction@fafc69e, (view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() covers at least <75> percent of the view's area), 300.0]
12-24 12:25:19.961 17808 17808 I ViewInteraction: Checking 'MatchesViewAssertion(Detox){viewMatcher=(view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() covers at least <75> percent of the view's area)}' assertion on view (view.getTag() is "SelfTestOk" and view has effective visibility <VISIBLE>)
12-24 12:25:19.980 17808 17808 D takeScreenshot: Found 1 global views to redraw
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: Test exception
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: java.lang.reflect.InvocationTargetException
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at java.lang.reflect.Method.invoke(Native Method)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at org.apache.commons.lang3.reflect.MethodUtils.invokeStaticMethod(MethodUtils.java:443)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at org.apache.commons.lang3.reflect.MethodUtils.invokeStaticMethod(MethodUtils.java:405)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.invoke.types.ClassTarget.execute(ClassTarget.java:23)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.invoke.types.Target.invoke(Target.java:59)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.invoke.MethodInvocation.invoke(MethodInvocation.java:35)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.invoke.MethodInvocation.invoke(MethodInvocation.java:26)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.invoke.MethodInvocation.invoke(MethodInvocation.java:20)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.InvokeActionHandler.handle(DetoxActionHandlers.kt:54)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.ActionsExecutor.executeAction$lambda-2$lambda-1(DetoxActionsDispatcher.kt:64)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$nk3cF8ntnfFqbJOcVqd04vjb5nY(Unknown Source:0)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda0.run(Unknown Source:8)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.os.Handler.handleCallback(Handler.java:873)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.os.Handler.dispatchMessage(Handler.java:99)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.os.Looper.loop(Looper.java:193)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.ActionsExecutor._init_$lambda-0(DetoxActionsDispatcher.kt:50)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$Hi5vyewqQiQqk57AkJy_cHqNGKY(Unknown Source:0)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda1.run(Unknown Source:4)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at java.lang.Thread.run(Thread.java:764)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: Caused by: java.lang.IncompatibleClassChangeError: Class 'org.hamcrest.StringDescription' does not implement interface 'java.lang.Iterable' in call to 'java.util.Iterator java.lang.Iterable.iterator()' (declaration of 'org.hamcrest.BaseDescription' appears in /data/app/io.bluewallet.bluewallet.test-G3vWW_Wl_2Wqs_H1-46Geg==/base.apk)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at org.hamcrest.BaseDescription.appendValueList(BaseDescription.java:81)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at androidx.test.espresso.matcher.ViewMatchers.getMismatchDescriptionString(ViewMatchers.java:3)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at androidx.test.espresso.matcher.ViewMatchers.assertThat(ViewMatchers.java:5)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.wix.detox.espresso.assertion.ViewAssertions$MatchesViewAssertion.check(ViewAssertions.java:53)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:2)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:14)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:1)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.os.Handler.handleCallback(Handler.java:873)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.os.Handler.dispatchMessage(Handler.java:99)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.os.Looper.loop(Looper.java:193)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at android.app.ActivityThread.main(ActivityThread.java:6669)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at java.lang.reflect.Method.invoke(Native Method)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-24 12:25:20.142 17808 17885 I DetoxActionHandlers: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
from detox.
@Overtorment I wonder, this could be a matter of rebuilding Detox and everything-native from scratch. Could you try a good wipe of everything, following the Detox bump, and a retry?
from detox.
Hmm I could give it another try, but on our CI everything gets build from scratch every time, and I initially encountered it on CI.
Unless there are some steps I can add to our CI to make sure that everything is 100% absolutely surely guaranteed clean..?
from detox.
Hm, this looks like this, doesn't it?
from detox.
hmm, we do have minSdkVersion = 28
from detox.
@Overtorment thanks you for your detailed feedback! I'm on it
from detox.
Hi @Overtorment,
I've tried to reproduce the problem locally on my machine the following branch: renovate/detox-20.x
Everything works perfect. It look like a problem with your local environment. Try to remove the node_modules, clean android project and rebuild everything again
from detox.
solved
@Overtorment How did you solve this problem?
from detox.
Related Issues (20)
- [System] Android: Implement `by.system` matchers.
- [System] Android: Implement `system.element(..).tap()`.
- [System] Android: Implement system expects (`toExist()`, `atIndex(..)`, `not`).
- [Epic] Standardizing Position Parameters Across APIs
- Issue Selecting Images from Gallery During Detox Tests HOT 2
- Linking.openURL() is not working with detox tests
- Detox will not typeText because element is not visible enough. HOT 1
- device.launchApp with permission doesn't work in iOS 16.4 HOT 1
- error: no such module 'CioTracking' import CioTracking (React-Native Firebase)
- waitFor - swipe is not working correctly on iOS HOT 1
- [System] iOS: Support system-level interactions with in-app webviews.
- [Epic] React Native .74 Compatibility HOT 1
- view.takeScreenshot does not work for react-native-skia canvas HOT 5
- Backwards incompatible JDK version change between versions 20.18.4 and 20.18.5 HOT 9
- [iOS]App crashs immediately after launching
- Add OS version in detox `device` module
- [Android] Scrollview item wrongly considered visible HOT 1
- [iOS] App crashes when launching iOS simulator with RN73
- Cannot wait for system alerts 'Argument type IndexableSystemElement is not assignable to parameter type NativeElement' HOT 1
- Deadlock during start with new architecture on iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detox.