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

Commit 06a636ea authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Link OpenAppFromLockNotificationWithLockOverlayApp with bugs

Make it easier to track failing assertions by connecting to existing bugs via FlakyTest annotation

Bug: 227143265
Bug: 209599395
Test: atest  OpenAppFromLockNotificationWithLockOverlayApp
Change-Id: I057fa4a415c60173b0858b442a050c06832a2436
parent 9951b551
Loading
Loading
Loading
Loading
+10 −3
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@


package com.android.server.wm.flicker.launch
package com.android.server.wm.flicker.launch


import android.platform.test.annotations.FlakyTest
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import android.platform.test.annotations.Presubmit
import android.platform.test.annotations.RequiresDevice
import android.platform.test.annotations.RequiresDevice
@@ -71,7 +72,7 @@ class OpenAppFromLockNotificationWithLockOverlayApp(testSpec: FlickerTestParamet
        }
        }


    @Test
    @Test
    @Postsubmit
    @FlakyTest(bugId = 227143265)
    fun showWhenLockedAppWindowBecomesVisible() {
    fun showWhenLockedAppWindowBecomesVisible() {
        testSpec.assertWm {
        testSpec.assertWm {
            this.hasNoVisibleAppWindow()
            this.hasNoVisibleAppWindow()
@@ -83,7 +84,7 @@ class OpenAppFromLockNotificationWithLockOverlayApp(testSpec: FlickerTestParamet
    }
    }


    @Test
    @Test
    @Postsubmit
    @FlakyTest(bugId = 227143265)
    fun showWhenLockedAppLayerBecomesVisible() {
    fun showWhenLockedAppLayerBecomesVisible() {
        testSpec.assertLayers {
        testSpec.assertLayers {
            this.isInvisible(showWhenLockedApp)
            this.isInvisible(showWhenLockedApp)
@@ -98,11 +99,17 @@ class OpenAppFromLockNotificationWithLockOverlayApp(testSpec: FlickerTestParamet
    @Presubmit @Test override fun appLayerBecomesVisible() = super.appLayerBecomesVisible()
    @Presubmit @Test override fun appLayerBecomesVisible() = super.appLayerBecomesVisible()


    /** {@inheritDoc} */
    /** {@inheritDoc} */
    @Postsubmit
    @FlakyTest(bugId = 227143265)
    @Test
    @Test
    override fun visibleLayersShownMoreThanOneConsecutiveEntry() =
    override fun visibleLayersShownMoreThanOneConsecutiveEntry() =
        super.visibleLayersShownMoreThanOneConsecutiveEntry()
        super.visibleLayersShownMoreThanOneConsecutiveEntry()


    /** {@inheritDoc} */
    @FlakyTest(bugId = 209599395)
    @Test
    override fun navBarLayerIsVisibleAtStartAndEnd() =
        super.navBarLayerIsVisibleAtStartAndEnd()

    companion object {
    companion object {
        /**
        /**
         * Creates the test configurations.
         * Creates the test configurations.