use of com.owncloud.android.ui.dialog.SyncedFolderPreferencesDialogFragment in project android by nextcloud.
the class SyncedFoldersActivityIT method testSyncedFolderDialog.
@Test
@ScreenshotTest
public void testSyncedFolderDialog() {
SyncedFolderDisplayItem item = new SyncedFolderDisplayItem(1, "/sdcard/DCIM/", "/InstantUpload/", true, false, false, true, "test@https://nextcloud.localhost", 0, 0, true, 1000, "Name", MediaFolderType.IMAGE, false);
SyncedFolderPreferencesDialogFragment sut = SyncedFolderPreferencesDialogFragment.newInstance(item, 0);
Intent intent = new Intent(targetContext, SyncedFoldersActivity.class);
SyncedFoldersActivity activity = activityRule.launchActivity(intent);
sut.show(activity.getSupportFragmentManager(), "");
getInstrumentation().waitForIdleSync();
shortSleep();
screenshot(Objects.requireNonNull(sut.requireDialog().getWindow()).getDecorView());
}
Aggregations