use our screenshot function, which obeys dark/color

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-11-05 17:31:20 +01:00
parent 933ed34c49
commit 723c4042df
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 4 additions and 6 deletions

View file

@ -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)
}
}

View file

@ -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)
}
}