Fix DialogFragmentIT

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-07-17 12:32:27 +02:00
parent 78cc80266a
commit d17dd38589
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 9 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View file

@ -26,6 +26,7 @@ import android.Manifest;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Intent;
import android.os.Looper;
import com.facebook.testing.screenshot.Screenshot;
import com.nextcloud.client.account.RegisteredUser;
@ -62,8 +63,11 @@ public class DialogFragmentIT extends AbstractIT {
Manifest.permission.WRITE_EXTERNAL_STORAGE);
@Test
// @ScreenshotTest
@ScreenshotTest
public void testRenameFileDialog() {
if (Looper.myLooper() == null) {
Looper.prepare();
}
RenameFileDialogFragment dialog = RenameFileDialogFragment.newInstance(new OCFile("/Test/"));
showDialog(dialog);
}
@ -112,8 +116,11 @@ public class DialogFragmentIT extends AbstractIT {
}
@Test
// @ScreenshotTest
@ScreenshotTest
public void testNewFolderDialog() {
if (Looper.myLooper() == null) {
Looper.prepare();
}
CreateFolderDialogFragment sut = CreateFolderDialogFragment.newInstance(new OCFile("/"));
showDialog(sut);
}