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

Commit 4b46428c authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Add WorkProfileTest back into presubmit

Bug: 243688989
Change-Id: I6cf389e5056cd6eea000530d4f974591dbf0e8eb
parent 8a21ec65
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@ import static com.android.launcher3.LauncherState.ALL_APPS;
import static com.android.launcher3.LauncherState.NORMAL;
import static com.android.launcher3.allapps.AllAppsStore.DEFER_UPDATES_TEST;
import static com.android.launcher3.util.TestUtil.installDummyAppForUser;
import static com.android.launcher3.util.rule.TestStabilityRule.LOCAL;
import static com.android.launcher3.util.rule.TestStabilityRule.PLATFORM_POSTSUBMIT;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -39,7 +37,6 @@ import com.android.launcher3.allapps.WorkPausedCard;
import com.android.launcher3.allapps.WorkProfileManager;
import com.android.launcher3.tapl.LauncherInstrumentation;
import com.android.launcher3.util.TestUtil;
import com.android.launcher3.util.rule.TestStabilityRule.Stability;

import org.junit.After;
import org.junit.Before;
@@ -103,8 +100,6 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
    }

    private void waitForWorkTabSetup() {
        // Added for b/243688989 flake to determine if we really are in allApps or not at this point
        mLauncher.getAllApps();
        waitForLauncherCondition("Work tab not setup", launcher -> {
            if (launcher.getAppsView().getContentView() instanceof AllAppsPagedView) {
                launcher.getAppsView().getAppsStore().enableDeferUpdates(DEFER_UPDATES_TEST);
@@ -115,7 +110,6 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
    }

    @Test
    @Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT) // b/243688989
    public void workTabExists() {
        assumeTrue(mWorkProfileSetupSuccessful);
        waitForWorkTabSetup();
@@ -176,7 +170,6 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
    }

    @Test
    @Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT) // b/243688989
    public void testEdu() {
        assumeTrue(mWorkProfileSetupSuccessful);
        waitForWorkTabSetup();