package com.applemand.zmanim.baselineprofile

import androidx.benchmark.macro.junit4.BaselineProfileRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class StartupBaselineProfile {

    @get:Rule val rule = BaselineProfileRule()

    @Test
    fun generate() = rule.collect(
        packageName = "com.applemand.zmanim"
    ) {
        pressHome()
        startActivityAndWait()
        // Scroll the first Month grid once to capture LazyVerticalGrid classes.
        device.waitForIdle()
    }
}
