mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Increase frame limit for bubble bar screen test
This test is flaky because the animation sometimes doesn't finish before the screenshot is taken. Increasing the frame limit should help to ensure that the animation has time to finish. ABTD 100x runs (passed): https://android-build.corp.google.com/abtd/run/L84400030006722716 Change-Id: I410fb74a947d805551ce1b2303f0dc4c8d616de9 Flag: com.android.wm.shell.enable_bubble_bar Fixes: 366544536 Test: ABTD above
This commit is contained in:
@@ -98,7 +98,7 @@ class BubbleBarViewScreenshotTest(emulationSpec: DeviceEmulationSpec) {
|
||||
// if we're still expanding, wait with taking a screenshot
|
||||
val shouldWait: (ComponentActivity, View) -> Boolean = { _, _ -> bubbleBarView.isExpanding }
|
||||
// increase the frame limit to allow the animation to end before taking the screenshot
|
||||
screenshotRule.frameLimit = 50
|
||||
screenshotRule.frameLimit = 500
|
||||
screenshotRule.screenshotTest(
|
||||
"bubbleBarView_expanded_threeBubbles",
|
||||
checkView = shouldWait,
|
||||
|
||||
Reference in New Issue
Block a user