mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +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
|
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
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue