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

Commit e001b44e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Bring back cuj6p/e" into main

parents 848d37c4 040049ab
Loading
Loading
Loading
Loading
+1 −25
Original line number Original line Diff line number Diff line
@@ -64,7 +64,6 @@ import org.junit.After
import org.junit.Assert.assertTrue
import org.junit.Assert.assertTrue
import org.junit.Assume
import org.junit.Assume
import org.junit.Before
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Rule
import org.junit.Test
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runner.RunWith
@@ -315,7 +314,7 @@ class ConnectedDisplayCujSmokeTests {
        verifyWindowCount(browserApp, expectedCount = 1)
        verifyWindowCount(browserApp, expectedCount = 1)
    }
    }


    fun cuj6(skipAppHandleTest: Boolean = false) {
    fun cuj6() {
        val externalDisplayId = connectedDisplayRule.setupTestDisplay()
        val externalDisplayId = connectedDisplayRule.setupTestDisplay()
        assertTaskbarVisible(externalDisplayId)
        assertTaskbarVisible(externalDisplayId)
        context.startActivity(
        context.startActivity(
@@ -334,10 +333,6 @@ class ConnectedDisplayCujSmokeTests {
            visible = true
            visible = true
        )
        )


        if (skipAppHandleTest) {
            return
        }

        // Enter desktop via app handle.
        // Enter desktop via app handle.
        openAppHandleMenuForFullscreenApp(externalDisplayId)
        openAppHandleMenuForFullscreenApp(externalDisplayId)
        waitForSysUiObjectForTheApp(clockApp, DESKTOP_BUTTON_RES_ID).click()
        waitForSysUiObjectForTheApp(clockApp, DESKTOP_BUTTON_RES_ID).click()
@@ -348,7 +343,6 @@ class ConnectedDisplayCujSmokeTests {


    // Extended: All window modes are supported on the connected display, including split screen
    // Extended: All window modes are supported on the connected display, including split screen
    @Test
    @Test
    @Ignore("b/428563383")
    @ExtendedOnly
    @ExtendedOnly
    fun cuj6e() {
    fun cuj6e() {
        cuj6()
        cuj6()
@@ -356,30 +350,12 @@ class ConnectedDisplayCujSmokeTests {


    // Projected: All window modes are supported on the connected display, including split screen
    // Projected: All window modes are supported on the connected display, including split screen
    @Test
    @Test
    @Ignore("b/428563383")
    @ProjectedOnly
    @ProjectedOnly
    @RequiresDevice
    @RequiresDevice
    fun cuj6p() {
    fun cuj6p() {
        cuj6()
        cuj6()
    }
    }


    // TODO(b/428563383) - Remove [cuj6e_skipAppHandle].
    // Extended: The same as CUJ6e but excluding app handle test.
    @Test
    @ExtendedOnly
    fun cuj6e_skipAppHandle() {
        cuj6(skipAppHandleTest = true)
    }

    // TODO(b/428563383) - Remove [cuj6p_skipAppHandle].
    // Extended: The same as CUJ6p but excluding app handle test.
    @Test
    @ProjectedOnly
    @RequiresDevice
    fun cuj6p_skipAppHandle() {
        cuj6(skipAppHandleTest = true)
    }

    // Extended: Opening an app from a full screen view will switch back to the desktop session,
    // Extended: Opening an app from a full screen view will switch back to the desktop session,
    // going to overview in this state will show the desktop view, with any full screen apps as
    // going to overview in this state will show the desktop view, with any full screen apps as
    // tiles to the left
    // tiles to the left