Espresso intent test failing

前端 未结 4 757
日久生厌
日久生厌 2021-02-01 15:46

I\'m learning android instrumentation testing with espresso. I have an app which has a drawer menu and there is a menu called About. I was testing click on that menu item and co

4条回答
  •  隐瞒了意图╮
    2021-02-01 16:06

    I had the same problem, however, switching to IntentsTestRule did not work, too. So I switch back to ActivityTestRule and called Intents.init() before and Intents.release() after the test which sent the Intent.

    For more information please see this reference.

提交回复
热议问题