Fix LoginActivityTest
- CtsAutoFillServiceTestCases
If Mock IME cannot be installed, depending on the height of the IME,
picker may not be displayed just-below/just-above EditText.
So, picker should be allowed to overlap with EditText.
And it should be visible to the user.
Gets the Activity visible frame to appWindowFrame.
And checks whether all of the following conditions are matched.
1) Picker.top <= Username1.bottom
2) Picker.bottom >= Username1.top
3) Picker ∈ appWindowFrame
Bug: 241283957
Test: LoginActivityTest#testDatasetPickerPosition
Change-Id: I7388cccaa9246f70b9c5e389eecd9dbfe04ff40f
1 file changed