I am trying to test Fragments with AndroidX test libraries (especially with FragmentScenario class)
I have a problem - all the test with fragments created with FragmentScenarion are getting stuck and not showing on the screen.
Does anyone know how to solve it?
P. S. All tests failed with the error - “java.lang.AssertionError: Activity never becomes requested state “[DESTROYED, RESUMED, STARTED, CREATED]” (last lifecycle transition = “PRE_ON_CREATE”)”