|
|
@ -18,8 +18,8 @@ package com.google.samples.apps.nowinandroid.baselineprofile
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
|
|
|
|
import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
|
|
|
|
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
|
|
|
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
|
|
|
import androidx.test.uiautomator.By
|
|
|
|
|
|
|
|
import com.google.samples.apps.nowinandroid.PACKAGE_NAME
|
|
|
|
import com.google.samples.apps.nowinandroid.PACKAGE_NAME
|
|
|
|
|
|
|
|
import com.google.samples.apps.nowinandroid.bookmarks.goToBookmarksScreen
|
|
|
|
import com.google.samples.apps.nowinandroid.foryou.forYouScrollFeedDownUp
|
|
|
|
import com.google.samples.apps.nowinandroid.foryou.forYouScrollFeedDownUp
|
|
|
|
import com.google.samples.apps.nowinandroid.foryou.forYouSelectTopics
|
|
|
|
import com.google.samples.apps.nowinandroid.foryou.forYouSelectTopics
|
|
|
|
import com.google.samples.apps.nowinandroid.foryou.forYouWaitForContent
|
|
|
|
import com.google.samples.apps.nowinandroid.foryou.forYouWaitForContent
|
|
|
@ -51,8 +51,7 @@ class BaselineProfileGenerator {
|
|
|
|
forYouScrollFeedDownUp()
|
|
|
|
forYouScrollFeedDownUp()
|
|
|
|
|
|
|
|
|
|
|
|
// Navigate to saved screen
|
|
|
|
// Navigate to saved screen
|
|
|
|
device.findObject(By.text("Saved")).click()
|
|
|
|
goToBookmarksScreen()
|
|
|
|
device.waitForIdle()
|
|
|
|
|
|
|
|
// TODO: we need to implement adding stuff to bookmarks before able to scroll it
|
|
|
|
// TODO: we need to implement adding stuff to bookmarks before able to scroll it
|
|
|
|
// bookmarksScrollFeedDownUp()
|
|
|
|
// bookmarksScrollFeedDownUp()
|
|
|
|
|
|
|
|
|
|
|
|