Now we can comment out the flaky test

Change-Id: Ifc041931bcf47e8716dcbe1e8c13617c88c932ea
ja/edge-to-edge-dropshots
Jose Alcérreca 6 months ago
parent fde23a4630
commit 8ff1ac5add

@ -23,7 +23,6 @@ import androidx.test.espresso.device.DeviceInteraction.Companion.setClosedMode
import androidx.test.espresso.device.DeviceInteraction.Companion.setFlatMode import androidx.test.espresso.device.DeviceInteraction.Companion.setFlatMode
import androidx.test.espresso.device.DeviceInteraction.Companion.setScreenOrientation import androidx.test.espresso.device.DeviceInteraction.Companion.setScreenOrientation
import androidx.test.espresso.device.EspressoDevice.Companion.onDevice import androidx.test.espresso.device.EspressoDevice.Companion.onDevice
import androidx.test.espresso.device.action.ScreenOrientation.LANDSCAPE
import androidx.test.espresso.device.action.ScreenOrientation.PORTRAIT import androidx.test.espresso.device.action.ScreenOrientation.PORTRAIT
import androidx.test.espresso.device.common.executeShellCommand import androidx.test.espresso.device.common.executeShellCommand
import androidx.test.espresso.device.controller.DeviceMode.CLOSED import androidx.test.espresso.device.controller.DeviceMode.CLOSED
@ -151,15 +150,18 @@ class EdgeToEdgeTest {
runFoldableTests(apiName = "api35") runFoldableTests(apiName = "api35")
} }
@RequiresDeviceMode(mode = CLOSED) // Very flaky:DeviceControllerOperationException: Device could not be set to the
@SdkSuppress(minSdkVersion = 35, codeName = "VanillaIceCream") // requested screen orientation.
@Test
fun edgeToEdge_Foldable_api35_landscape() { // @RequiresDeviceMode(mode = CLOSED)
onDevice().setClosedMode() // @SdkSuppress(minSdkVersion = 35, codeName = "VanillaIceCream")
onDevice().setScreenOrientation(LANDSCAPE) // @Test
forceThreeButtonNavigation() // fun edgeToEdge_Foldable_api35_landscape() {
screenshotSideNavigationBar("edgeToEdge_Foldable_landscape_sideNav3button_35") // onDevice().setClosedMode()
} // onDevice().setScreenOrientation(LANDSCAPE)
// forceThreeButtonNavigation()
// screenshotSideNavigationBar("edgeToEdge_Foldable_landscape_sideNav3button_35")
// }
private fun runFoldableTests(apiName: String) { private fun runFoldableTests(apiName: String) {
onDevice().setClosedMode() onDevice().setClosedMode()

Loading…
Cancel
Save