Waiting for snapshot layer gone for quick switch tests.

Reduce the flakness caused from remove window animation.

Bug: 213867585
Test: atest FlickerTests:QuickSwitchBetweenTwoAppsForwardTest
Test: atest FlickerTests:QuickSwitchBetweenTwoAppsBackTest
Change-Id: I79250fc188e9cefca5862727b5be0b399c5af57e
This commit is contained in:
wilsonshih
2022-03-01 19:42:46 +08:00
parent 319fe139cf
commit 8654089f3f
2 changed files with 3 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
transitions {
taplInstrumentation.launchedAppState.quickSwitchToPreviousApp()
wmHelper.waitForFullScreenApp(testApp1.component)
wmHelper.waitSnapshotGone()
wmHelper.waitForAppTransitionIdle()
wmHelper.waitForNavBarStatusBarVisible()
}

View File

@@ -51,7 +51,7 @@ import org.junit.runners.Parameterized
/**
* Test quick switching back to previous app from last opened app
*
* To run this test: `atest FlickerTests:QuickSwitchBetweenTwoAppsBackTest`
* To run this test: `atest FlickerTests:QuickSwitchBetweenTwoAppsForwardTest`
*
* Actions:
* Launch an app [testApp1]
@@ -101,6 +101,7 @@ open class QuickSwitchBetweenTwoAppsForwardTest(private val testSpec: FlickerTes
taplInstrumentation.launchedAppState.quickSwitchToPreviousAppSwipeLeft()
wmHelper.waitForFullScreenApp(testApp2.component)
wmHelper.waitSnapshotGone()
wmHelper.waitForAppTransitionIdle()
wmHelper.waitForNavBarStatusBarVisible()
}