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

Commit a5f289a6 authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Increase timeout and additional logs for WorkTabTest#testWorkEduFlow

Bug: 159671700
Test: WorkTabTest#testWorkEduFlow
Change-Id: I5c015fbb9555be0e3e74c721873da4edd0393c8a
parent 992ab433
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -150,11 +150,15 @@ public class WorkTabTest extends AbstractLauncherUiTest {
        waitForLauncherCondition("Launcher did not show the next edu screen", l -> {
            Log.d(TestProtocol.WORK_PROFILE_REMOVED,
                    "running test attempt" + attempt.getAndIncrement());
            if (!(l.getAppsView().getContentView() instanceof AllAppsPagedView)) {
                Log.d(TestProtocol.WORK_PROFILE_REMOVED, "Work tab not setup. Skipping test");
                return false;
            }
            return ((AllAppsPagedView) l.getAppsView().getContentView()).getCurrentPage()
                    == WORK_PAGE && ((TextView) workEduView.findViewById(
                    R.id.content_text)).getText().equals(
                    l.getResources().getString(R.string.work_profile_edu_work_apps));
        });
        }, 60000);
    }

    @Test