Git Product home page Git Product logo

Comments (13)

Overtorment avatar Overtorment commented on June 14, 2024 2

@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.

Overtorment avatar Overtorment commented on June 14, 2024 2

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.

gosha212 avatar gosha212 commented on June 14, 2024 1

Hi @Overtorment,
Can you share what is your version of AGP and what is your compile sdk version?

from detox.

Overtorment avatar Overtorment commented on June 14, 2024 1

solved

from detox.

d4vidi avatar d4vidi commented on June 14, 2024

@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.

d4vidi avatar d4vidi commented on June 14, 2024
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.

d4vidi avatar d4vidi commented on June 14, 2024

@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.

Overtorment avatar Overtorment commented on June 14, 2024

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.

noomorph avatar noomorph commented on June 14, 2024

Hm, this looks like this, doesn't it?

android/android-test#1642

from detox.

Overtorment avatar Overtorment commented on June 14, 2024

hmm, we do have minSdkVersion = 28

from detox.

gosha212 avatar gosha212 commented on June 14, 2024

@Overtorment thanks you for your detailed feedback! I'm on it

from detox.

gosha212 avatar gosha212 commented on June 14, 2024

Hi @Overtorment,
I've tried to reproduce the problem locally on my machine the following branch: renovate/detox-20.x

Image
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.

ghuseynova1 avatar ghuseynova1 commented on June 14, 2024

solved

@Overtorment How did you solve this problem?

from detox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.