Skip to content

Commit

Permalink
Use view instead activity for ss tests
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Mar 12, 2024
1 parent 6117525 commit b4da7b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

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;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class FileDetailFragmentStaticServerIT : AbstractIT() {

shortSleep()
shortSleep()
screenshot(activity)
screenshot(sut.fileDetailActivitiesFragment.binding.list)
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4da7b4

Please sign in to comment.