Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73b01098 authored by Cassy Chun-Crogan's avatar Cassy Chun-Crogan
Browse files

[DocsUI] Update clearSelection() method to use "clear selection" text

Follow up to ag/33384387 which changed the content description text from
"Cancel" to "Clear selection". The corresponding test method
clearSelection() needs to be updated.

Bug: 408898634
Test: atest FileCopyUiTest
Test: atest FilesActivityUiTest
Test: atest InternalStorageUiTest
Test: atest PeekUiTest
Test: atest SearchViewUiTest
Test: atest PickActivityTest
Flag: com.android.documentsui.flags.use_material3
Change-Id: I06c6dde825c8c42e9f3c466bf1d895f6de7f7a78
parent 7f87f528
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ public class DirectoryListBot extends Bots.BaseBot {
     */
    public void clearSelection() {
        int parentId = isUseMaterial3FlagEnabled() ? R.id.selection_bar : R.id.toolbar;
        onView(allOf(withContentDescription("Cancel"),
        onView(allOf(withContentDescription(R.string.clear_selection),
                isDescendantOfA(withId(parentId)))).perform(click());
    }