mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
use our screenshot function, which obeys dark/color
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
933ed34c49
commit
723c4042df
2 changed files with 4 additions and 6 deletions
|
@ -25,7 +25,6 @@ package com.nextcloud.client.etm
|
|||
import android.app.Activity
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule
|
||||
import androidx.test.internal.runner.junit4.statement.UiThreadStatement
|
||||
import com.facebook.testing.screenshot.Screenshot
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.lib.resources.status.OwnCloudVersion
|
||||
import com.owncloud.android.utils.ScreenshotTest
|
||||
|
@ -55,7 +54,7 @@ class EtmActivityTest : AbstractIT() {
|
|||
|
||||
waitForIdleSync()
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -65,7 +64,7 @@ class EtmActivityTest : AbstractIT() {
|
|||
|
||||
UiThreadStatement.runOnUiThread { sut.vm.onPageSelected(0) }
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -75,6 +74,6 @@ class EtmActivityTest : AbstractIT() {
|
|||
|
||||
UiThreadStatement.runOnUiThread { sut.vm.onPageSelected(1) }
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 org.junit.Rule
|
||||
import org.junit.Test
|
||||
|
@ -36,6 +35,6 @@ class UploadFilesActivityIT : AbstractIT() {
|
|||
fun open() {
|
||||
val sut: UploadFilesActivity = activityRule.launchActivity(null)
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
screenshot(sut)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue