Add screenRecord for PromiseIconUiTest

Bug: 202985412
Test: none
Change-Id: Iac74290ce872844c8a0f5d0878c8c55f6bb89bb2
This commit is contained in:
Alex Chau committed 2022-01-17 13:08:36 +00:00
1 parent 7b40594bc7
commit 26a4e5bf26
1 file changed
+3
@@ -27,6 +27,7 @@ import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherState;
import com.android.launcher3.ui.AbstractLauncherUiTest;
import com.android.launcher3.util.LauncherBindableItemsContainer.ItemOperator;
import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord;
import org.junit.After;
import org.junit.Test;
@@ -73,6 +74,7 @@ public class PromiseIconUiTest extends AbstractLauncherUiTest {
}
@Test
@ScreenRecord // b/202985412
public void testPromiseIcon_addedFromEligibleSession() throws Throwable {
final String appLabel = "Test Promise App " + UUID.randomUUID().toString();
final ItemOperator findPromiseApp = (info, view) ->
@@ -95,6 +97,7 @@ public class PromiseIconUiTest extends AbstractLauncherUiTest {
}
@Test
@ScreenRecord // b/202985412
public void testPromiseIcon_notAddedFromIneligibleSession() throws Throwable {
final String appLabel = "Test Promise App " + UUID.randomUUID().toString();
final ItemOperator findPromiseApp = (info, view) ->