From 297e593a52adf5e79be36d915ddacb7630b80c33 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Mon, 17 Jul 2023 11:51:08 +0000 Subject: [PATCH] Add removed setup action Removed this line because I thought it would make not difference to the test and just cause the tests to run slower. But it seems that without it the test fails with not being able to find action_buttons view in Launcher during the test. Test: forrest with multiple iterations to reproduce flake Change-Id: Ibe62596574f0ab93cbd6d3735fa60676fa38ddc7 --- .../service/splitscreen/scenarios/SwitchBackToSplitFromRecent.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchBackToSplitFromRecent.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchBackToSplitFromRecent.kt index d44d1779a3f68..9f9d4bb1a2a43 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchBackToSplitFromRecent.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/SwitchBackToSplitFromRecent.kt @@ -47,6 +47,7 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) { fun setup() { tapl.setEnableRotation(true) tapl.setExpectedRotation(rotation.value) + tapl.workspace.switchToOverview().dismissAllTasks() SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp)