You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling sleep while a DialogFragment is open, the test fails every time on Android 11+ with an error "Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds"
I believe this may be related to issue android/android-test#751
In the code, sleep is calling isRoot to look for the root view, but this doesn't work properly if a DialogFragment is open.
Steps to reproduce the bug:
Open a DialogFragment, for example I'm using a BottomSheetDialogFragment
After it opens, call sleep
See that the test fails
Expected Behavior:
I expected sleep to work as normal.
One option might be to be able to pass a view matcher to sleep, which could be of a view you know to exist. Or else just match any view using some generic matcher like withClassName(any()) or something.
The text was updated successfully, but these errors were encountered:
Library Version:
4.3.0
Describe the Bug:
When calling
sleep
while aDialogFragment
is open, the test fails every time on Android 11+ with an error "Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds"I believe this may be related to issue android/android-test#751
In the code,
sleep
is callingisRoot
to look for the root view, but this doesn't work properly if aDialogFragment
is open.Steps to reproduce the bug:
DialogFragment
, for example I'm using aBottomSheetDialogFragment
sleep
Expected Behavior:
I expected
sleep
to work as normal.One option might be to be able to pass a view matcher to
sleep
, which could be of a view you know to exist. Or else just match any view using some generic matcher likewithClassName(any())
or something.The text was updated successfully, but these errors were encountered: