Now we can comment out the flaky test

Change-Id: Ifc041931bcf47e8716dcbe1e8c13617c88c932ea
ben/dropshots
Jose Alcérreca 6 months ago
parent 3059e07e05
commit 48fc71d5e5

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