'Robolectric Espresso does not work when we change the container
I am trying to implement a unit test cases using Robolectric/AndroidX/Espresso APIs.
I launch the fragment which is present in a container using launchFragmentInContainer.
I try to click on the item in recycler-view, which is supposed to inflate another view which is inside another container.
The test case fails here and gives an error stating it cannot find the coordinates for click position.
Is it possible to carry out robolectric testing when we replace fragment containerIds in the flow?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
