summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Exiting tests after a test fails to deinitializevadimt2019-04-031-6/+21
| | | | | | | This avoid confusion when following tests get affected by failures in earlier tests. Change-Id: I44abcb38d5de222e48b0c33f062044280305750e
* Attempt to disable assistant and seeing if this helps with lab testsvadimt2019-03-061-0/+4
| | | | Change-Id: I4950eeee06555ca199208f678f670c3406b38d5a
* Merge "Removing diagnostics" into ub-launcher3-masterTreeHugger Robot2019-01-301-10/+0
|\
| * Removing diagnosticsvadimt2019-01-251-10/+0
| | | | | | | | | | | | | | | | Now that b/117332845 is fixed Bug: 117332845 Change-Id: If8c137b9c7cc386dfc5b5af4b81a3efbfa33f770 Tests: None
* | Splitting TaplTests into a pure AOSP and QS partsvadimt2019-01-291-0/+13
|/ | | | | | | | | | This will allow running as many as possible automatic checks on AOSP launcher and moving most AOSP tests that use TAPL to where they belong to: Tapl Tests. Bug: 110103162 Test: Running the test suites Change-Id: I9192354e6097698d4b942c5682b79664ecc2336d
* Switching from mDevice.pressHome() to mLauncher.pressHome()vadimt2019-01-111-1/+1
| | | | | | | Using mDevice.pressHome() was a workaround for the shifted-search bug. Change-Id: I740db2109af531c55f8ab59a42998bdc329fb72e Tests: affected tests
* Test swiping up from a killed launchervadimt2018-12-171-0/+11
| | | | | | Bug: 121164587 Test: StartLauncherViaGestureTests Change-Id: I01c5bfc0aa23418bad7d44b8d9cf8b95cbe0b320
* Adding tests that would reliably reproduce shifted search.vadimt2018-12-171-0/+22
| | | | | | | | | | | | | | This would guaranteed to repro b/118441555 before it was fixed. The test doesn't use the most powerful feature of race condition reproducer, which is enumerating all possible event sequences. Instead, it uses explicit repro sequences, which makes the test much faster. Bug: 120628042 Test: The added test Change-Id: I89a7a9964f160a8a20ba3d9dda2f248237713014
* Converting ShortcutsLaunchTest gesture-stableVadim Tryshev2018-11-011-5/+0
| | | | | | | | | By converting to TAPL. Bug: 110103162 Test; TaplTests Change-Id: I788405f2e52cc0e29ebf69e58feda46b408e9eb9
* Adding test methodsVadim Tryshev2018-10-251-0/+15
| | | | | | Bug: 117888000 Test: Running new Nexus tests Change-Id: I52a1f89add36dd38bbae8db262dd2e82280db130
* Supporting OOP testsVadim Tryshev2018-10-131-141/+4
| | | | | | | | AbstractLauncherUiTest was modified to compile and work both in- and out- of proc. Bug: 113056917 Test: was in Nexus branch
* Improving tests to fix testBindNormalWidget_withoutConfig, and beyondVadim Tryshev2018-10-091-12/+21
| | | | | | | | | | | | | | | | 1. Make waitXXX methods fail if the condition diesn’t turn true. 2. Waiting for loading to complete in tearDown instead of reloading the model 3. Avoiding waiting for load-complete where loading didn’t start 4. Disabling last test in AddConfigWidgetTest 5. Waiting for loading to complete inside setupAndVerifyContents(), not outside 6. Unifying how we wait for loader to complete 7. Adding more logging Bug: 117332845 Test: running all Nexus tests Change-Id: I3070e1ac2b9161179cc3e0800b0cd8162807389a
* Adding tests for fallback recents when a 3rd party launcher is installedSunny Goyal2018-10-091-5/+12
| | | | Change-Id: I1d4da13cc779f49832008b12b9628d01631faffe
* More temporary logging to diagnose testPendingWidget_autoRestoredVadim Tryshev2018-10-051-0/+12
| | | | | | | | And waiting to loader to finish to improve determinism. Bug: 117332845 Test: running Launcher Change-Id: Icdfce969b61f8ceb952a2715037783458da4d4c4
* Resetting loader state after each UI test runVadim Tryshev2018-10-051-0/+2
| | | | | | | | This is to prevent tests from affecting tests running after them. Bug: 117332845 Test: Ran all tests; will see on TAP Change-Id: Ie93ef30477eb069c6b4df48c6fceaceb968edaf4
* Enabling "in test harness" flag with a direct callVadim Tryshev2018-10-041-1/+3
| | | | | | | | | This allows running in-proc tests without enabling test harness on Android and restarting Launcher. Bug: 110103162 Test: TaplTests Change-Id: Ife44eff4760eb1349a10847efe2c1f27643bf146
* Make @QuickstepOnOff and @PortraitLandscape available to all UI tests.Vadim Tryshev2018-10-021-13/+60
| | | | | | | | | Also, fix rotation as Portrait as starting poin for all tests, to avoid tests running in unexpected configuration. Bug: 115645301 Test: run all Nexus tests Change-Id: I3ab0e91db111eeefda77af2960c43962a119de0c
* Attempting to fix flakes in AllAppsIconToHomeTestVadim Tryshev2018-09-261-5/+10
| | | | | | | | | | | | | | | | Pressing an icon in AllApps doesn't show a context menu. The flake doesn't repro locally, the suspects are: 1. Too short wait time 2. App being partially covered by navbar. Hence the fixes. This patch is temporary, and will be replaced with a permanent one when this will be converted to TAPL. Test: AllAppsIconToHomeTest Change-Id: I0a03ff8827a5bc7940af3ec956d4b62330a16c66
* Support for running tests out of Launcher processVadim Tryshev2018-09-251-2/+9
| | | | | | | | This CL doesn't turn it on yet. Bug: 113056917 Test: TaplTests Change-Id: I01007cb9ab330166cbb8a4c1fcd0cee0c60aeba5
* Add support for testing in portrait modeVadim Tryshev2018-09-211-11/+8
| | | | | | Bug: 110103162 Test: TaplTests Change-Id: I7f633405c04984ea8f04acdc6dd4ad21019d3409
* Disabling heads-up notifications in launcher tests.Vadim Tryshev2018-09-181-0/+7
| | | | | | | | This prevents the tests from interacting with this popup. Bug: 110103162 Test: TaplTests Change-Id: I0215ddab634611d20a63ed728de11d4138456f96
* Increasing wait time to populate suggested appsVadim Tryshev2018-08-231-3/+10
| | | | | | Bug: 110103162 Test: ReflectionBasicUiTest Change-Id: Iee5d4f328bdde93e6d9c2db9869314aa3a8eb00f
* Comment fixVadim Tryshev2018-08-231-1/+2
| | | | | | Bug: 110103162 Test: ReflectionBasicUiTest Change-Id: Ic9cfe925bb396e3fa0257009d5d9f53db728f9f0
* Fixing tests on a larger deviceVadim Tryshev2018-08-221-1/+2
| | | | | | | | | | See atp for failed tests. Widget container may return objects outside of screen, hence the test failures. Test: AddConfigWidgetTest.com.android.launcher3.ui.widget.AddConfigWidgetTest etc Change-Id: Ia402dae0c9bc8f0585e57ac5f562a59e8ff4ed53
* Passing instrumentation to LauncherInstrumentationVadim Tryshev2018-08-211-3/+4
| | | | | | | | | | UiDevice, the old param, belongs to a support lib; as TAPL switched to AndroidX, it became impossible to pass it from platform tests that still use the old support lib. Bug: 110103162 Test: TaplTests Change-Id: I1f82099b432912fa40da96df0d6179579aab66a3
* Converting tests to AndroidxVadim Tryshev2018-08-211-7/+7
| | | | | Bug: 112610679 Change-Id: I712826e668f1fbeb4e47cc541d4f5296d8eb74c0
* Started converting Launcher to be gesture-stableVadim Tryshev2018-08-141-4/+44
| | | | | | | | | | | | | | | All tests keep passing. WorkTabTest.workTabExists was made gesture-stable. There is no need to use TAPL, as the point is not to check answering to gestures, but to check presence of tabs, which is better to do using launcher internal state. (It still fails if run as a part of all tests, presumably, because after Launcher's start, changes in user configuration are not recognized, so I've commented the failing part) Bug: 110103162 Test: Run all tests Change-Id: Ic30b8e8475d16cee3880332f12311a44ddfa26cb
* Retiring some feature flagsSunny Goyal2018-07-101-15/+6
| | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* Fix the Launcher3TestsHyunyoung Song2018-06-191-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 78589564 $ adb shell am instrument -w com.android.launcher3.tests/android.support.test.runner.AndroidJUnitRunner com.android.launcher3.allapps.search.DefaultAppSearchAlgorithmTest:.. com.android.launcher3.logging.FileLogTest:.. com.android.launcher3.model.AddWorkspaceItemsTaskTest:.... com.android.launcher3.model.CacheDataUpdatedTaskTest:... com.android.launcher3.model.DbDowngradeHelperTest:.... com.android.launcher3.model.GridSizeMigrationTaskTest:........... com.android.launcher3.model.LoaderCursorTest:........ com.android.launcher3.model.PackageInstallStateChangedTaskTest:... com.android.launcher3.popup.PopupPopulatorTest:.. com.android.launcher3.provider.RestoreDbTaskTest:.. com.android.launcher3.touch.SwipeDetectorTest:..... com.android.launcher3.ui.AllAppsAppLaunchTest:.. com.android.launcher3.ui.AllAppsIconToHomeTest:.. com.android.launcher3.ui.ShortcutsLaunchTest:.. com.android.launcher3.ui.ShortcutsToHomeTest:.. com.android.launcher3.ui.WorkTabTest:. com.android.launcher3.ui.widget.AddConfigWidgetTest:.... com.android.launcher3.ui.widget.AddWidgetTest:.. com.android.launcher3.ui.widget.BindWidgetTest:...... com.android.launcher3.ui.widget.RequestPinItemTest:. com.android.launcher3.util.GridOccupancyTest:.. com.android.launcher3.widget.WidgetsListAdapterTest:...... Time: 180.363 OK (76 test) Change-Id: I4a50581bc8d06a030467ac9fec3e1ef668745214
* Add sanity test for work tabTony Mak2018-03-081-7/+15
| | | | | | | | | Create work profile and assert the tab is there. Also, fixed openAllApps in the test. FIX: 74390632 Change-Id: I526b4da0609643057a3d2306fa0034d57167840e
* Updating Launcher rotation logicSunny Goyal2018-03-031-5/+0
| | | | | | | | | | When auto-rotate is on, launcher allways allows rotation. This allows uses to use locked rotation feature is available on the device When auto-rotate is off, workspace does not allow rotation, but overview in quickstep will allow rotation Bug: 73872056 Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
* Deprecate work folderTony Mak2018-02-271-9/+4
| | | | | | FIX: 73876183 Change-Id: I9d15df247eed3500c679cba085c680b75581cffb
* Remove LAUNCHER3_ALL_APPS_PULL_UPHyunyoung Song2017-08-211-1/+1
| | | | | | | | Bug: 63712253 Verified: all apps transition fully functional Verified: NO_ALL_APPS_ICON = false case also works. Change-Id: I779fb7bd4927c5923da3f85590d912dbbbcdef4d
* Fixing various testsSunny Goyal2017-07-311-0/+308
> Migrating UI tests to AndroidJUnit4 for better support > Removing obsolete RotationPreference test > Fixing broken FileLogTest and AndroidJUnit4 > Removing InvariantDeviceProfileTest as it does not work well with resource overlays Change-Id: I0abb1df6765d76d86c1c6c84e8ac35eb9a6bcdaa