|
@@ -44,6 +44,7 @@ import com.nextcloud.client.account.User;
|
|
|
import com.nextcloud.client.account.UserAccountManager;
|
|
|
import com.nextcloud.client.device.DeviceInfo;
|
|
|
import com.nextcloud.ui.ChooseAccountDialogFragment;
|
|
|
+import com.nextcloud.ui.fileactions.FileActionsBottomSheet;
|
|
|
import com.owncloud.android.AbstractIT;
|
|
|
import com.owncloud.android.MainApp;
|
|
|
import com.owncloud.android.datamodel.ArbitraryDataProvider;
|
|
@@ -496,6 +497,18 @@ public class DialogFragmentIT extends AbstractIT {
|
|
|
showDialog(sut);
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ @ScreenshotTest
|
|
|
+ public void testFileActionsBottomSheet() {
|
|
|
+ if (Looper.myLooper() == null) {
|
|
|
+ Looper.prepare();
|
|
|
+ }
|
|
|
+
|
|
|
+ OCFile ocFile = new OCFile("/test.md");
|
|
|
+ final FileActionsBottomSheet sut = FileActionsBottomSheet.newInstance(ocFile, false);
|
|
|
+ showDialog(sut);
|
|
|
+ }
|
|
|
+
|
|
|
private FileDisplayActivity showDialog(DialogFragment dialog) {
|
|
|
Intent intent = new Intent(targetContext, FileDisplayActivity.class);
|
|
|
|