Skip to content

Commit e867371

Browse files
Add screenshot test for storage permission dialog
Signed-off-by: Álvaro Brey <[email protected]>
1 parent e8d8bdc commit e867371

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

app/src/androidTest/java/com/owncloud/android/ui/dialog/DialogFragmentIT.java

+12
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,18 @@ public void testSslUntrustedCertDialog() {
484484
showDialog(sut);
485485
}
486486

487+
488+
@Test
489+
@ScreenshotTest
490+
public void testStoragePermissionDialog() {
491+
if (Looper.myLooper() == null) {
492+
Looper.prepare();
493+
}
494+
495+
StoragePermissionDialogFragment sut = StoragePermissionDialogFragment.Companion.newInstance(false);
496+
showDialog(sut);
497+
}
498+
487499
private FileDisplayActivity showDialog(DialogFragment dialog) {
488500
Intent intent = new Intent(targetContext, FileDisplayActivity.class);
489501

0 commit comments

Comments
 (0)