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

Commit aad43c48 authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Disable TAPL orientation check

When we go home, Launcher requests orientation NOSENSOR(5), so it is expected to be rotation 0, causing tapl to fail. This check doesn't provide any additional value on the flicker tests and can be removed.

Test: atest FlickerTests
Flag: TEST_ONLY
Fixes: 405206302
Fixes: 416013396
Fixes: 414815480
Change-Id: Ifca5f87f2bc2d3199b8b455ba5580dacf072172f
parent fb008518
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ import android.platform.test.annotations.Presubmit
import android.tools.flicker.junit.FlickerBuilderProvider
import android.tools.flicker.legacy.FlickerBuilder
import android.tools.flicker.legacy.LegacyFlickerTest
import android.tools.traces.component.ComponentNameMatcher
import android.tools.traces.executeShellCommand
import android.util.Log
import androidx.test.platform.app.InstrumentationRegistry
@@ -45,7 +44,7 @@ constructor(
    protected val tapl: LauncherInstrumentation = LauncherInstrumentation()
) {
    init {
        tapl.setExpectedRotationCheckEnabled(true)
        tapl.expectedRotationCheckEnabled = false
        executeShellCommand(
            "settings put system hide_rotation_lock_toggle_for_accessibility 1"
        )