From 6ccf197ccdc04cc86f4ce75cdffdd819c4bda8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Tue, 28 May 2024 10:10:19 +0000 Subject: [PATCH] Removes espresso device Change-Id: I5c32f70dad7dc27c98c34733f3fd80c71ccb773a --- .../google/samples/apps/nowinandroid/ui/EdgeToEdgeTest.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/EdgeToEdgeTest.kt b/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/EdgeToEdgeTest.kt index 2479bdb38..9ef5e5554 100644 --- a/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/EdgeToEdgeTest.kt +++ b/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/EdgeToEdgeTest.kt @@ -21,9 +21,7 @@ import android.util.Log import androidx.test.core.app.takeScreenshot import androidx.test.espresso.device.DeviceInteraction.Companion.setClosedMode import androidx.test.espresso.device.DeviceInteraction.Companion.setFlatMode -import androidx.test.espresso.device.DeviceInteraction.Companion.setScreenOrientation import androidx.test.espresso.device.EspressoDevice.Companion.onDevice -import androidx.test.espresso.device.action.ScreenOrientation.PORTRAIT import androidx.test.espresso.device.common.executeShellCommand import androidx.test.espresso.device.controller.DeviceMode.CLOSED import androidx.test.espresso.device.controller.DeviceMode.FLAT @@ -127,7 +125,6 @@ class EdgeToEdgeTest { @SdkSuppress(minSdkVersion = 27, maxSdkVersion = 27) @Test fun edgeToEdge_Phone_Api27() { - onDevice().setScreenOrientation(PORTRAIT) screenshotSystemBar("edgeToEdge_Phone_systemBar_Api27") screenshotNavigationBar("edgeToEdge_Phone_navBar_Api27") } @@ -137,7 +134,6 @@ class EdgeToEdgeTest { @SdkSuppress(minSdkVersion = 33, maxSdkVersion = 33) @Test fun edgeToEdge_Foldable_api33() { - onDevice().setScreenOrientation(PORTRAIT) runFoldableTests(apiName = "api33") } @@ -146,7 +142,6 @@ class EdgeToEdgeTest { @SdkSuppress(minSdkVersion = 35, codeName = "VanillaIceCream") @Test fun edgeToEdge_Foldable_api35() { - onDevice().setScreenOrientation(PORTRAIT) runFoldableTests(apiName = "api35") }