Created
July 17, 2016 11:54
-
-
Save Egorand/7ed9e1553b1b3fc702b74bc2ca0bf95c to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-should-display-short-rationale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void b_shouldDisplayShortRationaleIfPermissionWasDenied() throws Exception { | |
denyCurrentPermission(device); | |
onView(withText(R.string.permission_denied_rationale_short)).check(matches(isDisplayed())); | |
onView(withText(R.string.grant_permission)).check(matches(isDisplayed())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment