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

Commit 03bc29cd authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Fix NavBar visibility assertion

The NavBar starts invisible and becomes visible during the transition. It is no longer visible when the device screen is off

Bug: 167747321
Test: atest FlickerTests:OpenAppNonResizeableTest
Change-Id: I86556088cd6150e9cdc8a192f6ddb8bb3608c8ee
parent 792db6a7
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -91,16 +91,14 @@ class OpenAppNonResizeableTest(testSpec: FlickerTestParameter) : OpenAppTransiti
        }

    /**
     * Checks that the nav bar layer starts visible, becomes invisible during unlocking animation
     * and becomes visible at the end
     * Checks that the nav bar layer starts invisible, becomes visible during unlocking animation
     * and remains visible at the end
     */
    @FlakyTest
    @Postsubmit
    @Test
    fun navBarLayerVisibilityChanges() {
        testSpec.assertLayers {
            this.isVisible(FlickerComponentName.NAV_BAR)
                .then()
                .isInvisible(FlickerComponentName.NAV_BAR)
            this.isInvisible(FlickerComponentName.NAV_BAR)
                .then()
                .isVisible(FlickerComponentName.NAV_BAR)
        }
@@ -153,16 +151,14 @@ class OpenAppNonResizeableTest(testSpec: FlickerTestParameter) : OpenAppTransiti
    }

    /**
     * Checks that the nav bar starts the transition visible, then becomes invisible during
     * then unlocking animation and becomes visible at the end of the transition
     * Checks that the nav bar starts the transition invisible, then becomes visible during
     * the unlocking animation and remains visible at the end of the transition
     */
    @FlakyTest
    @Postsubmit
    @Test
    fun navBarWindowsVisibilityChanges() {
        testSpec.assertWm {
            this.isAboveAppWindowVisible(FlickerComponentName.NAV_BAR)
                .then()
                .isNonAppWindowInvisible(FlickerComponentName.NAV_BAR)
            this.isNonAppWindowInvisible(FlickerComponentName.NAV_BAR)
                .then()
                .isAboveAppWindowVisible(FlickerComponentName.NAV_BAR)
        }