Search in sources :

Example 26 with NavigationModeSwitch

use of com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch in project android_packages_apps_Launcher3 by AOSPA.

the class TaplTestsQuickstep method testOverviewActions.

/**
 * Smoke test for action buttons: Presses all the buttons and makes sure no crashes occur.
 */
@Test
@NavigationModeSwitch
@PortraitLandscape
// b/195673272
@ScreenRecord
public void testOverviewActions() throws Exception {
    // Experimenting for b/165029151:
    final Overview overview = mLauncher.pressHome().switchToOverview();
    if (overview.hasTasks())
        overview.dismissAllTasks();
    mLauncher.pressHome();
    // 
    startTestAppsWithCheck();
    OverviewActions actionsView = mLauncher.pressHome().switchToOverview().getOverviewActions();
    actionsView.clickAndDismissScreenshot();
}
Also used : OverviewActions(com.android.launcher3.tapl.OverviewActions) Overview(com.android.launcher3.tapl.Overview) ScreenRecord(com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord) LargeTest(androidx.test.filters.LargeTest) Test(org.junit.Test) NavigationModeSwitch(com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch)

Aggregations

LargeTest (androidx.test.filters.LargeTest)26 NavigationModeSwitch (com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch)26 Test (org.junit.Test)26 Background (com.android.launcher3.tapl.Background)14 Intent (android.content.Intent)6 Bundle (android.os.Bundle)6 RemoteViews (android.widget.RemoteViews)6 OverviewActions (com.android.launcher3.tapl.OverviewActions)6 ListViewService (com.android.launcher3.testcomponent.ListViewService)6 SimpleViewsFactory (com.android.launcher3.testcomponent.ListViewService.SimpleViewsFactory)6 Suppress (androidx.test.filters.Suppress)5 Overview (com.android.launcher3.tapl.Overview)5 ScreenRecord (com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord)4