mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
use dark/light aware screenshot method
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
973977e6ff
commit
9e6ee79c3f
2 changed files with 3 additions and 5 deletions
|
@ -22,7 +22,6 @@
|
|||
package com.owncloud.android.ui.activity
|
||||
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule
|
||||
import com.facebook.testing.screenshot.Screenshot
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.lib.resources.notifications.models.Action
|
||||
import com.owncloud.android.lib.resources.notifications.models.Notification
|
||||
|
@ -41,7 +40,7 @@ class NotificationsActivityIT : AbstractIT() {
|
|||
fun loading() {
|
||||
val sut: NotificationsActivity = activityRule.launchActivity(null)
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
package com.owncloud.android.ui.trashbin
|
||||
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule
|
||||
import com.facebook.testing.screenshot.Screenshot
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.utils.ScreenshotTest
|
||||
import org.junit.Rule
|
||||
|
@ -49,7 +48,7 @@ class TrashbinActivityIT : AbstractIT() {
|
|||
|
||||
shortSleep()
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -82,6 +81,6 @@ class TrashbinActivityIT : AbstractIT() {
|
|||
|
||||
shortSleep()
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue