Skip to content

Commit

Permalink
Merge pull request #38 from lovoo/fix-ui-test
Browse files Browse the repository at this point in the history
add new permission to ui test
  • Loading branch information
olliwear authored Aug 17, 2022
2 parents 6a069e1 + 57abe82 commit 9b0d31c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ object AppStart {
val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext
InstrumentationRegistry.getInstrumentation().uiAutomation.grantRuntimePermission(context.packageName, android.Manifest.permission.WRITE_EXTERNAL_STORAGE)
InstrumentationRegistry.getInstrumentation().uiAutomation.grantRuntimePermission(context.packageName, android.Manifest.permission.READ_EXTERNAL_STORAGE)
InstrumentationRegistry.getInstrumentation().uiAutomation.grantRuntimePermission(context.packageName, android.Manifest.permission.READ_MEDIA_IMAGES)

// permissions for google camera
val cameraPackage = getCameraPackageName(context)
Expand Down

0 comments on commit 9b0d31c

Please sign in to comment.