Merge "Fix split screen tests" into main

This commit is contained in:
Nataniel Borges
2023-07-26 09:59:58 +00:00
committed by Android (Google) Code Review

View File

@@ -33,8 +33,9 @@ abstract class SplitScreenBase(flicker: LegacyFlickerTest) : BaseBenchmarkTest(f
tapl.setEnableRotation(true)
setRotation(flicker.scenario.startRotation)
tapl.setExpectedRotation(flicker.scenario.startRotation.value)
if (tapl.workspace.switchToOverview().hasTasks()) {
tapl.workspace.switchToOverview().dismissAllTasks()
val overview = tapl.workspace.switchToOverview()
if (overview.hasTasks()) {
overview.dismissAllTasks()
}
}
}