Find correct eject icon of test root
Symptom:
DocumentsClientTest#testEject failed when SD card is mounted.
Root cause:
In DocumentsClientTest.findEjectIcon(), rootsListObject.getChildByText()
returned not a row but a itself.
Because there is a possibility that UiCollection.getChildByText()
returns not only child but also itself.
As a result if other ejectable root like SD card is above test root,
DocumentsClientTest#testEject will fail due to other ejectable root is
ejected instead of test root.
Solution:
Add child pattern to exclude root list from search result.
Bug: 63279704
Change-Id: I71dd16afbb22b906e7d2a80f5e5193b24ec136f1
1 file changed