Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bb74cdc authored by Ats Jenk's avatar Ats Jenk Committed by Android (Google) Code Review
Browse files

Merge "Verify transition from trampoline to bubble" into main

parents 2528eaca c56336d7
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.tools.device.apphelpers.StandardAppHelper
import android.tools.traces.parsers.toFlickerComponent
import com.android.server.wm.flicker.helpers.SimpleAppHelper
import com.android.server.wm.flicker.testapp.ActivityOptions
import org.junit.Test

/**
 * The base class for Bubble flicker tests that bubble an app that launches via a trampoline task
@@ -28,6 +29,20 @@ abstract class BubbleFlickerTrampolineTestBase : BubbleFlickerTestBase() {

    override val testApp = runningApp

    /** Verifies the transition from the trampoline activity to the running activity. */
    @Test
    fun trampolineActivityTransitions() {
        layersTraceSubject
            .skipUntilFirstAssertion()
            .isSplashScreenVisibleFor(trampolineApp)
            .then()
            // Check that trampoline starts the running app, running app can show a splash or not
            .isSplashScreenVisibleFor(runningApp, isOptional = true)
            .then()
            .isVisible(runningApp)
            .forAllEntries()
    }

    companion object {
        /**
         * Entry point for the app that is launching via trampoline