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

Commit c56336d7 authored by Ats Jenk's avatar Ats Jenk
Browse files

Verify transition from trampoline to bubble

Check that we first have a layer for the trampoline and then the
launched app.

Bug: 439498605
Flag: EXEMPT TEST_ONLY
Test: atest WMShellExplicitFlickerTestsBubbles:EnterBubbleFromHomeScreenTrampolineTest
Change-Id: I2272a84577e579f5f505a5d17498f0ae79d856c1
parent 702f5a2c
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