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

Commit 2f771c7d authored by Nataniel Borges's avatar Nataniel Borges
Browse files

8/ Fix nav and status bar assertions with display off

Bug: 232085799
Test: atest FlickerTests
Change-Id: Ie7bfeea29089933766f0a9f69b528875ff1d8027
parent dcf7063f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -17,10 +17,12 @@
package com.android.server.wm.flicker.launch

import android.platform.test.annotations.FlakyTest
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import com.android.server.wm.flicker.FlickerTestParameter
import com.android.server.wm.flicker.dsl.FlickerBuilder
import com.android.server.wm.flicker.navBarLayerPositionEnd
import com.android.server.wm.flicker.statusBarLayerPositionEnd
import com.android.server.wm.traces.common.FlickerComponentName
import org.junit.Test

@@ -110,6 +112,16 @@ abstract class OpenAppFromLockTransition(testSpec: FlickerTestParameter) :
    @Test
    override fun navBarLayerRotatesAndScales() = testSpec.navBarLayerPositionEnd()

    /**
     * Checks the position of the status bar at the start and end of the transition
     *
     * Differently from the normal usage of this assertion, check only the final state of the
     * transition because the display is off at the start and the NavBar is never visible
     */
    @Postsubmit
    @Test
    override fun statusBarLayerRotatesScales() = testSpec.statusBarLayerPositionEnd()

    /**
     * Checks that the status bar layer is visible at the end of the trace
     *