mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 06:35:48 +03:00
Fix DialogFragmentIT
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
78cc80266a
commit
d17dd38589
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 |
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue