Commit Graph

701 Commits

Author SHA1 Message Date
TreeHugger Robot
907c22ca14 Merge "Not checking for some anomalies when switching nav modes" into sc-v2-dev 2021-08-24 19:49:41 +00:00
Alex Chau
204e749f06 Merge "Revert "Migrating all model tests to Instrumentation tests"" into sc-v2-dev 2021-08-24 17:29:06 +00:00
Alex Chau
7a4a30d86d Revert "Migrating all model tests to Instrumentation tests"
This reverts commit 455ba62b5d.

Reason for revert: Breaks tests on all targets

Bug: 196825541
Bug: 197570389
Change-Id: Ida6792a09c54dee46105b6b914a0dd1545bdf48d
2021-08-24 17:27:52 +00:00
vadimt
51ae38304b Not checking for some anomalies when switching nav modes
Test: presubmit
Bug: 196820244
Change-Id: I3e9554d3deb453625cde5003ccf132f21253f58a
2021-08-24 17:23:12 +00:00
TreeHugger Robot
c817d2a633 Merge "Migrating all model tests to Instrumentation tests" into sc-v2-dev 2021-08-23 21:08:51 +00:00
Sunny Goyal
455ba62b5d Migrating all model tests to Instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: Iebd46eb41eb46c187d569197f4b97b4fddc0f6f7
2021-08-23 12:34:44 -07:00
TreeHugger Robot
a7929aff08 Merge "Logging for artifacts not being created" into sc-v2-dev 2021-08-19 10:39:57 +00:00
vadimt
b29f63af3c Logging for artifacts not being created
Bug: 196820244
Test: presubmit
Change-Id: I8bcaa0a87d54adc122a71755746912112c4b83e1
2021-08-18 19:10:13 -07:00
Sunny Goyal
494bbb0b6c Merge "Moving all widget picker tests to instrumentation tests" into sc-v2-dev 2021-08-19 01:41:40 +00:00
Sunny Goyal
177785eccf Moving all widget picker tests to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: I946f29baedb2e6b29044f8df1bc73b74e9999efe
2021-08-18 15:06:53 -07:00
Sunny Goyal
11854ba48b Moving some utility tests to instrumentation tests
> Also removing some UI tests which are already covered by instrumentation

Bug: 196825541
Test: Presubmit
Change-Id: Ib39a81589d0bf55278623a596d444b752ca696e6
2021-08-18 15:00:45 -07:00
Sunny Goyal
4af8cf9269 Updating test build rules
> Moving definition to bp files
> Adding mokito-inline to allow mocking final classes
> Moving src_common to src to avoid unnecessary code split

Bug: 196825541
Test: Presubmit
Change-Id: Ib6879cda6aee74f5b9050a16eb6ca94ed3b7e28c
2021-08-18 10:22:52 -07:00
TreeHugger Robot
87cf3efe06 Merge "Removing some instrumentation for a workarounded bug" into sc-v2-dev 2021-08-13 18:42:22 +00:00
vadimt
303298de84 Restoring generating artifacts
Bug: 189874683
Test: presubmit
Change-Id: I82503900a8b7ce916a54437456007dec00016c47
2021-08-12 16:04:05 -07:00
Alex Chau
2a4c978371 Clean up ScreenRecord for AddWidgetTest
Bug: 195263971
Test: manual
Change-Id: I5880c9aa0294795d7a5827163f3f51466b67ad35
2021-08-11 10:06:05 +01:00
vadimt
a1e0b01a44 Removing some instrumentation for a workarounded bug
Bug: 187080582
Test: Local, presubmit
Change-Id: I2334072bebc9d4e40d632fe068943bf5560f02e4
2021-08-10 18:43:40 -07:00
TreeHugger Robot
0a39f6daec Merge "Diagnose when lab device sends fake touch screen events to test" into sc-v2-dev 2021-08-09 11:00:45 +00:00
vadimt
6b534ee54f Diagnose when lab device sends fake touch screen events to test
Bug: 189874683
Test: local
Change-Id: I8ac569ab049bafaa0a6263598f2b43a99386e6d9
2021-08-06 15:49:02 -07:00
Vadim Tryshev
ed53d1c21c Revert "Revert "Removing workaround for battery defender""
This reverts commit f9ccf0175d.

Reason for revert: to see whether b/151613234 is fixed

Test: pre-, post- submit
Bug: 151613234
Change-Id: Ieda2907319d796a57494318920c22f3db4527dab
2021-08-05 20:52:58 +00:00
Alex Chau
2994df043a Allow Sv2 in launcher build version
Bug: 195632795
Test: atest NexusLauncherTests:com.google.android.apps.nexuslauncher.wellbeing.WellbeingTests#testPauseAppFromOverview
Change-Id: If0c047bfc64e17de71e9861e27c3a1373577e398
2021-08-05 19:10:17 +01:00
TreeHugger Robot
1179930b74 Merge "Logging to figure out why first dump didn't result in assertion" into sc-v2-dev 2021-08-03 20:05:19 +00:00
vadimt
25f1cd94cc Logging to figure out why first dump didn't result in assertion
Bug: 195319692
Test: presubmit
Change-Id: I4a80541a58eb8f630211de4b90836c435f6d41b2
2021-08-03 11:09:30 -07:00
Alex Chau
9016e17988 Add ScreenRecord for testDragCustomShortcut
- For investigation of a failing test

Bug: 195263971
Test: manual
Change-Id: If68e678a847f70c5b891c9dbcece77333fedf846
2021-08-02 10:49:42 +01:00
Alex Chau
27ee6447db Clean up screen record for tests
- Add new record and remove obsolete ones

Bug: 193440212
Bug: 193125090
Bug: 192005114
Test: manual
Change-Id: I860c42961e710e1542d9d911338dd359896b6970
2021-07-29 11:01:09 +01:00
TreeHugger Robot
4a0cd5abff Merge "Re-enabling getting stability flavor. Can parse Launcher version Tiramisu. Also removes patterns that were used in the unbundled branch." into sc-v2-dev 2021-07-26 20:45:19 +00:00
vadimt
e7f064eb85 Re-enabling getting stability flavor.
Can parse Launcher version Tiramisu.
Also removes patterns that were used in
the unbundled branch.

Test: presubmit
Bug: 194528425
Change-Id: I43cca43ed1735cf8ed8845a614768bc42b1403f6
2021-07-24 01:55:50 +00:00
Vadim Tryshev
192cbbbdd3 Merge "Initial workaround for changed platform codename breakage" into sc-v2-dev 2021-07-24 00:55:57 +00:00
vadimt
8ace5d204b Initial workaround for changed platform codename breakage
Test: presubmit
Bug: 194528425
Change-Id: I703da06bbfe5cd28011f7693b16cc0cc263a23ee
2021-07-23 15:33:13 -07:00
TreeHugger Robot
8aac1952af Merge "Dump accessibility hierarchy on test failure" into sc-v2-dev 2021-07-23 03:42:48 +00:00
vadimt
cf1c28ef73 Dump accessibility hierarchy on test failure
This will allow seeing exactly what the test sees.

Test: local runs
Bug: 187761685
Change-Id: Ibf4b97bd9b99d4b40def4eb3db9a2cd1b47defb1
2021-07-22 16:00:53 -07:00
Alex Chau
c2181c2be4 Re-enable leak detection on tablets
Bug: 191449914
Test: NexustLauncherTests
Change-Id: Ia2fe0826c933e646260c16d8890aaf2a47023e6d
2021-07-20 12:27:51 +01:00
Alex Chau
0686931b68 Use DeviceProfile.isTwoPanels for two panels expectation in tests
Fix: 193810767
Test: TaplTestsLauncher3.testWorkspace
Change-Id: Ifec5506415b79f3effa84fe0163eb1bb2bc7cc8d
2021-07-16 15:14:34 +00:00
Sunny Goyal
711c596c86 Binding Taskbar directly from Launcher model
This allows taskbar to be loaded even in case of 3P Launchers
and removes dependency on LauncherActivity lifecycle

Bug: 187353581
Bug: 188788621
Test: Manual
Change-Id: I5a0988e0697b41677d4c58f0213aef14ec0c0972
2021-07-15 12:43:11 -07:00
TreeHugger Robot
dc955de0ea Merge "Remove press home command from AddConfigWidgetTest." into sc-dev am: 3ff0336f4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15188774

Change-Id: I33003e69aefe81ce6ec938376ceceb4c4ccd707b
2021-07-14 20:43:35 +00:00
TreeHugger Robot
3ff0336f4a Merge "Remove press home command from AddConfigWidgetTest." into sc-dev 2021-07-14 20:25:09 +00:00
Yogisha Dixit
b9a1ac47b8 Remove press home command from AddConfigWidgetTest.
Context: b/192406323#comment4

Bug: 192406323
Test: AddConfigWidgetTest
Change-Id: I2741358de93f75ef7ed73ee97964020162542756
2021-07-14 10:38:31 +01:00
Vadim Tryshev
ef21ccb501 Merge "Deleting screen records for succeeded tests" into sc-dev am: 1d495b2480
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15193183

Change-Id: I9bdb02ea4e02976f78984c1b998f93b48cfa5386
2021-07-12 20:58:36 +00:00
vadimt
35c3c76d57 Deleting screen records for succeeded tests
Test: local runs
Bug: 187761685
Change-Id: I3b1a75b775d1d6677b331869a063fc6132217947
2021-07-03 00:46:46 +00:00
Alex Chau
fc27bd17af Fix TaplTestsLauncher.testWorkspace's page expectation for 2 panel
- In tablet, workspace is scrollable only if page count > 2 instead of 1

Bug: 191344757
Test: TaplTestsLauncher.testWorkspace
Change-Id: I1db4e03bc1edd7976a75b2a5f6fedf69eea7b435
2021-07-02 19:55:25 +01:00
Vadim Tryshev
0c3a3125a5 Merge "Verifying success of setting default Launcher in tests" into sc-dev am: ba302e8a6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15158349

Change-Id: I45b7cdf29ea93351fb2a47a7ec207739de5e3745
2021-06-30 20:44:53 +00:00
Vadim Tryshev
ba302e8a6a Merge "Verifying success of setting default Launcher in tests" into sc-dev 2021-06-30 20:43:36 +00:00
vadimt
a26516c575 Verifying success of setting default Launcher in tests
Test: local runs
Bug: 187080582
Change-Id: Iece234e58e2faa80996001f6de1943f065522400
2021-06-30 10:12:56 -07:00
Yogisha Dixit
ffd5acea77 Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I318890ec7296fdd9f2176cf19e77898ed5acbf0e
2021-06-29 21:21:45 +00:00
Yogisha Dixit
037a5362d8 Show resize frame when widget is added.
I referenced the code in Workspace.java that updates the widget view's
layout params before showing the resize frame.

Test: manual, AddWidgetTest and AddConfigWidgetTest tapl tests
Bug: 183437963
Change-Id: I6655917878fa22d6084b4bf39fc0661e7278d6f9
2021-06-29 18:25:38 +01:00
TreeHugger Robot
9f867ac8b6 Merge "Enabling screen record for some flaky tests" into sc-dev am: 5c6d7c3a1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15112968

Change-Id: I188875721529cbb36fd5ae37fb304953125802fc
2021-06-26 15:10:36 +00:00
TreeHugger Robot
8c15da0654 Merge "Improving hierarchy dump for test failure" into sc-dev am: e9d8df54ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15097672

Change-Id: I3de22c6313d83b991dd880c5520a3e1ecfe0999b
2021-06-26 15:10:22 +00:00
TreeHugger Robot
5c6d7c3a1f Merge "Enabling screen record for some flaky tests" into sc-dev 2021-06-26 00:33:05 +00:00
Sunny Goyal
85a84e52cc Enabling screen record for some flaky tests
Bug: 187080582
Bug: 192005114
Bug: 192018189
Bug: 192010616
Test: Manual
Change-Id: I32fc0e4c9848c4def1aa6254139579bc631862cc
2021-06-25 15:40:55 -07:00
Sunny Goyal
420ba54dee Improving hierarchy dump for test failure
Bug: 192003777
Test: Manual
Change-Id: I3223a14cd88beddd76ecae0ae37c6fdce0752bef
2021-06-25 12:41:51 -07:00
Alex Chau
7a9972289f Add touch event of on taskbar for various cases
- Temporarily disable leak detection on tablets until b/191449914 is resolved
- Add touch event on taskbar when interacting with navigation buttons
- Added TaplTestsLauncher3.initialize to StartLauncherViaGestureTests which is present in TaplTestQuickstep to solve LauncherInstrumentation being null problem on tablets

Bug: 191344757, 191449914
Test: TaplTestQuickstep and StartLauncherViaGestureTests
Change-Id: I49accc458d133717f290140abe80aae8a683f6c0
2021-06-24 18:00:12 +01:00