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

Commit 743a322d authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Disable status bar assertions on OpenCameraOnDoubleClickPowerButton

This assertion depends on whether the permission dialog is displayed or not

Fixes: 277765045
Test: atest FlickerTests:OpenCameraOnDoubleClickPowerButton
Change-Id: I3ebaecc1c2fea70868bda632533ed4bde570d742
parent b6ea0ff3
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -24,11 +24,12 @@ import android.tools.device.flicker.junit.FlickerParametersRunnerFactory
import android.tools.device.flicker.legacy.FlickerBuilder
import android.tools.device.flicker.legacy.FlickerBuilder
import android.tools.device.flicker.legacy.FlickerTest
import android.tools.device.flicker.legacy.FlickerTest
import android.tools.device.flicker.legacy.FlickerTestFactory
import android.tools.device.flicker.legacy.FlickerTestFactory
import android.tools.device.flicker.rules.RemoveAllTasksButHomeRule
import android.view.KeyEvent
import android.view.KeyEvent
import androidx.test.filters.RequiresDevice
import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.helpers.setRotation
import com.android.server.wm.flicker.helpers.setRotation
import android.tools.device.flicker.rules.RemoveAllTasksButHomeRule
import org.junit.FixMethodOrder
import org.junit.FixMethodOrder
import org.junit.Ignore
import org.junit.Test
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runner.RunWith
import org.junit.runners.MethodSorters
import org.junit.runners.MethodSorters
@@ -44,6 +45,7 @@ import org.junit.runners.Parameterized
 *     Make sure no apps are running on the device
 *     Make sure no apps are running on the device
 *     Launch an app [testApp] and wait animation to complete
 *     Launch an app [testApp] and wait animation to complete
 * ```
 * ```
 *
 * Notes:
 * Notes:
 * ```
 * ```
 *     1. Some default assertions (e.g., nav bar, status bar and screen covered)
 *     1. Some default assertions (e.g., nav bar, status bar and screen covered)
@@ -112,16 +114,16 @@ class OpenCameraOnDoubleClickPowerButton(flicker: FlickerTest) :
    @Test
    @Test
    override fun navBarWindowIsAlwaysVisible() = super.navBarWindowIsAlwaysVisible()
    override fun navBarWindowIsAlwaysVisible() = super.navBarWindowIsAlwaysVisible()


    @Postsubmit
    @Ignore("Status bar visibility depends on whether the permission dialog is displayed or not")
    @Test
    @Test
    override fun statusBarLayerIsVisibleAtStartAndEnd() =
    override fun statusBarLayerIsVisibleAtStartAndEnd() =
        super.statusBarLayerIsVisibleAtStartAndEnd()
        super.statusBarLayerIsVisibleAtStartAndEnd()


    @Postsubmit
    @Ignore("Status bar visibility depends on whether the permission dialog is displayed or not")
    @Test
    @Test
    override fun statusBarLayerPositionAtStartAndEnd() = super.statusBarLayerPositionAtStartAndEnd()
    override fun statusBarLayerPositionAtStartAndEnd() = super.statusBarLayerPositionAtStartAndEnd()


    @Postsubmit
    @Ignore("Status bar visibility depends on whether the permission dialog is displayed or not")
    @Test
    @Test
    override fun statusBarWindowIsAlwaysVisible() = super.statusBarWindowIsAlwaysVisible()
    override fun statusBarWindowIsAlwaysVisible() = super.statusBarWindowIsAlwaysVisible()