use dark/light aware screenshot method

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-11-05 16:03:10 +01:00
parent 973977e6ff
commit 9e6ee79c3f
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 3 additions and 5 deletions

View file

@ -22,7 +22,6 @@
package com.owncloud.android.ui.activity package com.owncloud.android.ui.activity
import androidx.test.espresso.intent.rule.IntentsTestRule import androidx.test.espresso.intent.rule.IntentsTestRule
import com.facebook.testing.screenshot.Screenshot
import com.owncloud.android.AbstractIT import com.owncloud.android.AbstractIT
import com.owncloud.android.lib.resources.notifications.models.Action import com.owncloud.android.lib.resources.notifications.models.Action
import com.owncloud.android.lib.resources.notifications.models.Notification import com.owncloud.android.lib.resources.notifications.models.Notification
@ -41,7 +40,7 @@ class NotificationsActivityIT : AbstractIT() {
fun loading() { fun loading() {
val sut: NotificationsActivity = activityRule.launchActivity(null) val sut: NotificationsActivity = activityRule.launchActivity(null)
Screenshot.snapActivity(sut).record() screenshot(sut)
} }
@Test @Test

View file

@ -22,7 +22,6 @@
package com.owncloud.android.ui.trashbin package com.owncloud.android.ui.trashbin
import androidx.test.espresso.intent.rule.IntentsTestRule import androidx.test.espresso.intent.rule.IntentsTestRule
import com.facebook.testing.screenshot.Screenshot
import com.owncloud.android.AbstractIT import com.owncloud.android.AbstractIT
import com.owncloud.android.utils.ScreenshotTest import com.owncloud.android.utils.ScreenshotTest
import org.junit.Rule import org.junit.Rule
@ -49,7 +48,7 @@ class TrashbinActivityIT : AbstractIT() {
shortSleep() shortSleep()
Screenshot.snapActivity(sut).record() screenshot(sut)
} }
@Test @Test
@ -82,6 +81,6 @@ class TrashbinActivityIT : AbstractIT() {
shortSleep() shortSleep()
Screenshot.snapActivity(sut).record() screenshot(sut)
} }
} }