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

Commit f1bca291 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Use ScreenRecordRule for functional Desktop e2e tests

Annotate functional e2e Desktop tests with
ScreenRecordRule.ScreenRecord

Flag: EXEMPT test update
Bug: 405886707
Test: run a couple of WMShellFlickerTestsDesktopMode tests
Change-Id: Ifb73b6785947d7aa81bb2e2f8bb2e6cbf9f42089
parent d0796e29
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.wm.shell.functional

import android.platform.test.rule.ScreenRecordRule
import com.android.wm.shell.scenarios.AltTabSwitchInDesktopMode
import org.junit.Ignore
import org.junit.runner.RunWith
@@ -23,5 +24,6 @@ import org.junit.runners.BlockJUnit4ClassRunner

/* Functional test for [AltTabSwitchInDesktopMode]. */
@RunWith(BlockJUnit4ClassRunner::class)
@ScreenRecordRule.ScreenRecord
@Ignore("Blocked by b/392820286, include in Postsubmit, when the issue is resolved")
class AltTabSwitchInDesktopModeTest : AltTabSwitchInDesktopMode()
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.wm.shell.functional

import android.platform.test.annotations.Postsubmit
import android.platform.test.rule.ScreenRecordRule
import com.android.wm.shell.scenarios.BringDesktopAppsToFront
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner
@@ -23,4 +24,5 @@ import org.junit.runners.BlockJUnit4ClassRunner
/** Functional test for [BringDesktopAppsToFront]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
@ScreenRecordRule.ScreenRecord
class BringDesktopAppsToFrontTest : BringDesktopAppsToFront()
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.wm.shell.functional

import android.platform.test.annotations.Postsubmit
import android.platform.test.rule.ScreenRecordRule
import com.android.wm.shell.scenarios.CloseAllAppsWithAppHeaderExit
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner
@@ -24,4 +25,5 @@ import org.junit.runners.BlockJUnit4ClassRunner
/* Functional test for [CloseAllAppsWithAppHeaderExit]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
@ScreenRecordRule.ScreenRecord
class CloseAllAppsWithAppHeaderExitTest() : CloseAllAppsWithAppHeaderExit()
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.wm.shell.functional

import android.platform.test.annotations.Postsubmit
import android.platform.test.rule.ScreenRecordRule
import com.android.wm.shell.scenarios.EnterDesktopViaMenuOfLiveOverviewTask
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner
@@ -24,4 +25,5 @@ import org.junit.runners.BlockJUnit4ClassRunner
/* Functional test for [EnterDesktopViaMenuOfLiveOverviewTask]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
@ScreenRecordRule.ScreenRecord
class EnterDesktopViaMenuOfLiveOverviewTaskTest : EnterDesktopViaMenuOfLiveOverviewTask()
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.wm.shell.functional

import android.platform.test.annotations.Postsubmit
import android.platform.test.rule.ScreenRecordRule
import com.android.wm.shell.scenarios.EnterDesktopViaMenuOfStaticOverviewTask
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner
@@ -24,4 +25,5 @@ import org.junit.runners.BlockJUnit4ClassRunner
/* Functional test for [EnterDesktopViaMenuOfStaticOverviewTask]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
@ScreenRecordRule.ScreenRecord
class EnterDesktopViaMenuOfStaticOverviewTaskTest : EnterDesktopViaMenuOfStaticOverviewTask()
Loading