Merge "Fix DragDividerToResize flicker tests" into udc-dev

This commit is contained in:
Jeff Chang
2023-04-19 01:38:20 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 10 deletions

View File

@@ -223,15 +223,6 @@ fun FlickerTest.splitAppLayerBoundsChanges(
portraitPosTop,
scenario.endRotation
)
.then()
.isInvisible(component)
.then()
.splitAppLayerBoundsSnapToDivider(
component,
landscapePosLeft,
portraitPosTop,
scenario.endRotation
)
} else {
splitAppLayerBoundsSnapToDivider(
component,

View File

@@ -293,7 +293,7 @@ internal object SplitScreenUtils {
wmHelper.currentState.layerState.displays.firstOrNull { !it.isVirtual }?.layerStackSpace
?: error("Display not found")
val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS)
dividerBar.drag(Point(displayBounds.width * 1 / 3, displayBounds.height * 2 / 3), 2000)
dividerBar.drag(Point(displayBounds.width * 1 / 3, displayBounds.height * 2 / 3), 200)
wmHelper
.StateSyncBuilder()