mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 02:38:58 +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.Account;
|
||||||
import android.accounts.AccountManager;
|
import android.accounts.AccountManager;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.os.Looper;
|
||||||
|
|
||||||
import com.facebook.testing.screenshot.Screenshot;
|
import com.facebook.testing.screenshot.Screenshot;
|
||||||
import com.nextcloud.client.account.RegisteredUser;
|
import com.nextcloud.client.account.RegisteredUser;
|
||||||
|
@ -62,8 +63,11 @@ public class DialogFragmentIT extends AbstractIT {
|
||||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
// @ScreenshotTest
|
@ScreenshotTest
|
||||||
public void testRenameFileDialog() {
|
public void testRenameFileDialog() {
|
||||||
|
if (Looper.myLooper() == null) {
|
||||||
|
Looper.prepare();
|
||||||
|
}
|
||||||
RenameFileDialogFragment dialog = RenameFileDialogFragment.newInstance(new OCFile("/Test/"));
|
RenameFileDialogFragment dialog = RenameFileDialogFragment.newInstance(new OCFile("/Test/"));
|
||||||
showDialog(dialog);
|
showDialog(dialog);
|
||||||
}
|
}
|
||||||
|
@ -112,8 +116,11 @@ public class DialogFragmentIT extends AbstractIT {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
// @ScreenshotTest
|
@ScreenshotTest
|
||||||
public void testNewFolderDialog() {
|
public void testNewFolderDialog() {
|
||||||
|
if (Looper.myLooper() == null) {
|
||||||
|
Looper.prepare();
|
||||||
|
}
|
||||||
CreateFolderDialogFragment sut = CreateFolderDialogFragment.newInstance(new OCFile("/"));
|
CreateFolderDialogFragment sut = CreateFolderDialogFragment.newInstance(new OCFile("/"));
|
||||||
showDialog(sut);
|
showDialog(sut);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue