Fix split screen tests

You can't go to overview when you are in overview

Fixes: 293212785
Test: atest WMShellFlickerTestsSplitScreenEnter WMShellFlickerTestsSplitScreenOther
Change-Id: I5799de2b649564437438be276eaea90fd7490cb2
This commit is contained in:
Nataniel Borges
2023-07-26 08:07:19 +00:00
parent c62afc4f8a
commit a4d7f0d5a0

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()
}
}
}