Merge pull request #858 from SimonMarquis/patch-10

Add missing `allowNotifications()` in `BaselineProfileGenerator.kt`
pull/618/head
Milosz Moczkowski 11 months ago committed by GitHub
commit d2d12b958b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,6 +43,7 @@ class BaselineProfileGenerator {
allowNotifications()
pressHome()
startActivityAndWait()
allowNotifications()
// Scroll the feed critical user journey
forYouWaitForContent()

@ -34,7 +34,7 @@ fun MacrobenchmarkScope.goToInterestsScreen() {
}
fun MacrobenchmarkScope.interestsScrollTopicsDownUp() {
val topicsList = device.findObject(By.res("interests:topics"))
val topicsList = device.wait(Until.findObject(By.res("interests:topics")), 2_000)
device.flingElementDownUp(topicsList)
}

Loading…
Cancel
Save