Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4d7f0d5 authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Fix split screen tests

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

Fixes: 293212785
Test: atest WMShellFlickerTestsSplitScreenEnter WMShellFlickerTestsSplitScreenOther
Change-Id: I5799de2b649564437438be276eaea90fd7490cb2
parent c62afc4f
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -33,8 +33,9 @@ abstract class SplitScreenBase(flicker: LegacyFlickerTest) : BaseBenchmarkTest(f
            tapl.setEnableRotation(true)
            tapl.setEnableRotation(true)
            setRotation(flicker.scenario.startRotation)
            setRotation(flicker.scenario.startRotation)
            tapl.setExpectedRotation(flicker.scenario.startRotation.value)
            tapl.setExpectedRotation(flicker.scenario.startRotation.value)
            if (tapl.workspace.switchToOverview().hasTasks()) {
            val overview = tapl.workspace.switchToOverview()
                tapl.workspace.switchToOverview().dismissAllTasks()
            if (overview.hasTasks()) {
                overview.dismissAllTasks()
            }
            }
        }
        }
    }
    }