Skip to content

Commit 6afcbc5

Browse files
wip
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent f55ccbe commit 6afcbc5

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

app/src/androidTest/java/com/nextcloud/client/FileDisplayActivityScreenshotIT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
6666
}
6767
}
6868

69+
// @ScreenshotTest disabled for now
6970
@Test
70-
@ScreenshotTest
7171
fun showMediaThenAllFiles() {
7272
try {
7373
launchActivity<FileDisplayActivity>().use { scenario ->

app/src/androidTest/java/com/nextcloud/client/SyncedFoldersActivityIT.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ class SyncedFoldersActivityIT : AbstractIT() {
7575
scenario.onActivity { sut ->
7676
val fragment = newInstance(item, 0)
7777
fragment!!.show(sut.supportFragmentManager, "")
78-
screenshot(fragment.requireDialog().window?.decorView, screenShotName)
78+
}
79+
scenario.onActivity { sut ->
80+
screenshotViaName(sut, screenShotName)
7981
}
8082
}
8183
}
@@ -96,9 +98,12 @@ class SyncedFoldersActivityIT : AbstractIT() {
9698
sut.showPowerCheckDialog()
9799
}
98100

99-
val screenShotName = createName(testClassName + "_" + "showPowerCheckDialog", "")
100101
onView(isRoot()).check(matches(isDisplayed()))
101-
screenshot(dialog!!.window?.decorView, screenShotName)
102+
103+
scenario.onActivity { sut ->
104+
val screenShotName = createName(testClassName + "_" + "showPowerCheckDialog", "")
105+
screenshotViaName(sut, screenShotName)
106+
}
102107
}
103108
}
104109
}

app/src/androidTest/java/com/owncloud/android/ScreenshotsIT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class ScreenshotsIT : AbstractIT() {
101101
}
102102
}
103103

104+
// @ScreenshotTest disabled for now
104105
@Test
105-
@ScreenshotTest
106106
fun davdroidScreenshot() {
107107
launchActivity<SettingsActivity>().use {
108108
onView(withText(R.string.prefs_category_more)).perform(scrollTo())

0 commit comments

Comments
 (0)