Skip to content

Instantly share code, notes, and snippets.

@Egorand
Created July 17, 2016 11:51
Show Gist options
  • Save Egorand/aafb4a009f54dd5fbc80833f126778c4 to your computer and use it in GitHub Desktop.
Save Egorand/aafb4a009f54dd5fbc80833f126778c4 to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-should-display-permission-dialog
@Test
public void a_shouldDisplayPermissionRequestDialogAtStartup() throws Exception {
assertViewWithTextIsVisible(device, "ALLOW");
assertViewWithTextIsVisible(device, "DENY");
// cleanup for the next test
denyCurrentPermission(device);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment