androidx.test.espresso.contrib.DrawerActions Java Examples

The following examples show how to use androidx.test.espresso.contrib.DrawerActions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UITests.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Opens drawer and navigates to Settings
 */
protected static void goToSettings() {
  onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
  onView(withText(R.string.drawer_title_settings)).perform(click());
}
 
Example #2
Source File: UITests.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Opens drawer and navigates to My Account
 */
protected static void goToMyAccount() {
  onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
  onView(withText(R.string.drawer_title_my_account)).perform(click());
}