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

Commit 31ff6f77 authored by Ioana Moraru's avatar Ioana Moraru
Browse files

Move assertions for two activities transition

Move the tests for two activities transition  application from postsubmit to
presubmit

Bug: 167521668
Test: atest FlickerTests:ActivitiesTransitionTest
Change-Id: I3bb67653bd86ea26873e175c8d7643f9ea84b84c
parent 244bbadc
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.server.wm.flicker.launch

import android.app.Instrumentation
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import androidx.test.filters.RequiresDevice
import androidx.test.platform.app.InstrumentationRegistry
import com.android.server.wm.flicker.entireScreenCovered
@@ -76,7 +76,7 @@ class ActivitiesTransitionTest(val testSpec: FlickerTestParameter) {
        }
    }

    @Postsubmit
    @Presubmit
    @Test
    fun finishSubActivity() {
        testSpec.assertWm {
@@ -88,13 +88,13 @@ class ActivitiesTransitionTest(val testSpec: FlickerTestParameter) {
        }
    }

    @Postsubmit
    @Presubmit
    @Test
    fun entireScreenCovered() {
        testSpec.entireScreenCovered(testSpec.config.startRotation)
    }

    @Postsubmit
    @Presubmit
    @Test
    fun launcherWindowNotVisible() {
        testSpec.assertWm {
@@ -102,7 +102,7 @@ class ActivitiesTransitionTest(val testSpec: FlickerTestParameter) {
        }
    }

    @Postsubmit
    @Presubmit
    @Test
    fun launcherLayerNotVisible() {
        testSpec.assertLayers { this.isInvisible(LAUNCHER_COMPONENT) }