mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Use view instead activity for ss tests
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
e47437255f
commit
108d5223e5
4 changed files with 7 additions and 6 deletions
|
@ -27,6 +27,7 @@ import android.content.Intent;
|
|||
|
||||
import com.nextcloud.client.preferences.SubFolderRule;
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.databinding.SyncedFoldersLayoutBinding;
|
||||
import com.owncloud.android.datamodel.MediaFolderType;
|
||||
import com.owncloud.android.datamodel.SyncedFolderDisplayItem;
|
||||
import com.owncloud.android.ui.activity.SyncedFoldersActivity;
|
||||
|
@ -51,9 +52,9 @@ public class SyncedFoldersActivityIT extends AbstractIT {
|
|||
@Test
|
||||
@ScreenshotTest
|
||||
public void open() {
|
||||
Activity sut = activityRule.launchActivity(null);
|
||||
longSleep();
|
||||
screenshot(sut);
|
||||
SyncedFoldersLayoutBinding sut = activityRule.launchActivity(null).binding;
|
||||
shortSleep();
|
||||
screenshot(sut.list);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -173,7 +173,7 @@ class FileDetailFragmentStaticServerIT : AbstractIT() {
|
|||
|
||||
shortSleep()
|
||||
shortSleep()
|
||||
screenshot(activity)
|
||||
screenshot(sut.fileDetailActivitiesFragment.binding.list)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -165,7 +165,7 @@ class SyncedFoldersActivity :
|
|||
@Inject
|
||||
lateinit var syncedFolderProvider: SyncedFolderProvider
|
||||
|
||||
private lateinit var binding: SyncedFoldersLayoutBinding
|
||||
lateinit var binding: SyncedFoldersLayoutBinding
|
||||
private lateinit var adapter: SyncedFolderAdapter
|
||||
|
||||
private var syncedFolderPreferencesDialogFragment: SyncedFolderPreferencesDialogFragment? = null
|
||||
|
|
|
@ -106,7 +106,7 @@ public class FileDetailActivitiesFragment extends Fragment implements
|
|||
private FileOperationsHelper operationsHelper;
|
||||
private VersionListInterface.CommentCallback callback;
|
||||
|
||||
private FileDetailsActivitiesFragmentBinding binding;
|
||||
FileDetailsActivitiesFragmentBinding binding;
|
||||
|
||||
@Inject UserAccountManager accountManager;
|
||||
@Inject ClientFactory clientFactory;
|
||||
|
|
Loading…
Reference in a new issue