Commit Graph

1472 Commits

Author SHA1 Message Date
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
TreeHugger Robot
2be2590698 Merge "Diagnosing when only SysUI is visible." into sc-v2-dev 2021-07-23 22:43:12 +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
vadimt
715dc428e3 Diagnosing when only SysUI is visible.
Test: presubmit
Bug: 187761685
Change-Id: Ia4c7305193c104db4999dfb463004165d8f8b578
2021-07-23 11:21:41 -07:00
TreeHugger Robot
8a4a99ed95 Merge "Improving diags for launching an app." into sc-v2-dev 2021-07-23 04:12:08 +00:00
TreeHugger Robot
8aac1952af Merge "Dump accessibility hierarchy on test failure" into sc-v2-dev 2021-07-23 03:42:48 +00:00
TreeHugger Robot
ec4be03dd3 Merge "Improving diags when Launcher is invisible when the test fails" into sc-v2-dev 2021-07-23 03:42:39 +00:00
vadimt
771da0c00f Improving diags for launching an app.
Test: presubmit
Bug: 187761685
Change-Id: I8c304dbabc474e39aa8fe1cca234140823764099
2021-07-22 19:02:51 -07: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
vadimt
6c1331ca42 Improving diags when Launcher is invisible when the test fails
Test: presubmit
Bug: 187761685
Change-Id: I69a930ef076dbf6cca5af516228ebe689fac91eb
2021-07-21 18:50:32 -07:00
Alex Chau
2450adf56f Always use INSIDE_TO_OUTSIDE scope when swiping to home in tablets
- In tablets user is either in home screen or there is a taskbar on screen, so swipe to home will always touches the launcher

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: Id1b05708324302eb4b4c2d623ca9fe27090188fc
2021-07-21 14:52:01 +01:00
Alex Chau
17e9b51e38 Merge "Wait for taskbar to become visible after closing launcher in tests" into sc-v2-dev 2021-07-20 22:59:31 +00:00
Alex Chau
cd791c5c9d Wait for taskbar to become visible after closing launcher in tests
- Taskbar takes some time to appear after closing launcher and launching test app

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: I714e35ee855660ac28bb214386f48ddbea0e834c
2021-07-20 21:11:08 +01:00
Alex Chau
dc66ec82a0 Merge "Re-enable leak detection on tablets" into sc-v2-dev 2021-07-20 20:09:38 +00:00
Vadim Tryshev
9d7cc7d59f Merge "Further improving TAPL error messages" into sc-v2-dev 2021-07-20 20:04:35 +00: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
Vadim Tryshev
0e8f7098b4 Merge "Waiting for broadcasts idle in TaplInstrumentation constructor" into sc-v2-dev 2021-07-19 22:03:43 +00:00
Alex Chau
97cba26a20 Wait for dismiss animation to finish before checking task count
- See http://b/193440212#comment5, TaskView takes time after swipe gesture to finish dismiss animation, so wait for the animation to finish before checking task count

Bug: 193440212
Test: TaplTestsQuickstep#testOverview
Change-Id: I21397e68f384e956a7c9f2ee8a8161ac784b4d2e
2021-07-19 17:34:57 +01:00
vadimt
b0def1ea21 Waiting for broadcasts idle in TaplInstrumentation constructor
Hoping that this will prevent Launcher restarts
during test execution.

Test: presubmit
Bug: 187761685
Change-Id: If9ba8795bcb27366dd1b2cdcad1c5329ef2e76c0
2021-07-16 19:27:44 -07: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
vadimt
7e8cda14a7 Further improving TAPL error messages
Old:
java.lang.AssertionError: http://go/tapl test failure:
Context: getting widget No Config in widgets list => resulting visible state is Widgets;
Details: Widgets container didn't become scrollable

New:
java.lang.AssertionError: http://go/tapl test failure: Widgets container didn't become scrollable;
Context: getting widget No Config in widgets list; now visible state is Widgets

Test: local runs
Bug: 187761685
Change-Id: I77a5b9133f577af27182f823e1130c371863e065
2021-07-15 17:42:09 -07: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
Vadim Tryshev
d6e33dc3ce Merge "Adding more context to swipe-to-home diags" into sc-v2-dev 2021-07-15 00:58:45 +00:00
TreeHugger Robot
6f20ec39dc Merge "Moving launcher state verification higher." into sc-v2-dev 2021-07-15 00:16:27 +00:00
vadimt
b8d13d7a70 Moving launcher state verification higher.
This will result in better messages when accidentally scrolling
closes All Apps.

Test: presubmit
Bug: 187761685
Change-Id: Iadb8847ba66b1d6fe903577f67fcf3e504c2b28c
2021-07-14 22:13:11 +00:00
vadimt
fa0be316df Adding more context to swipe-to-home diags
Test: presubmit
Bug: 187761685
Change-Id: I89c6bac2258e63d95971dec9a5c688125b885229
2021-07-14 22:12:31 +00:00
vadimt
d0767c86ff Making it clear that the diagnosed state is the final, current one
Test: presubmit
Bug: 187761685
Change-Id: I739a0b9158518a3495b5df7010a0641ed8db8506
2021-07-14 22:11:39 +00: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
TreeHugger Robot
13a423c327 Merge "Expect state transition to overview while holding the swipe from home" into sc-v2-dev 2021-07-14 19:11:55 +00:00
Alex Chau
58a11ac91b Expect state transition to overview while holding the swipe from home
- When swiping from home to overview, overview launches while the finger is still holding the gesture, which is different from swiping from app to overview

Bug: 193440212
Test: TaplTestQuickStep.testOverview and TaplTestQuickStep.testBackground
Change-Id: Ie45e9cb5e599175a56ed368bef107b84db919a34
2021-07-14 17:59:12 +01:00
Alex Chau
6168de06e5 Add logs for pressHome for isLauncherVisible
- Log isLauncherVisble right before the swipe gesture to see if it's a more accurate indicator compared to reading isLauncherVisble earlier

Bug: 193653850
Test: StartLauncherViaGestureTests#testStressPressHome
Change-Id: I4a8303a82f1106c0d1345f561ab469aa4ed59e51
2021-07-14 17:51:08 +01: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
Vadim Tryshev
1d495b2480 Merge "Deleting screen records for succeeded tests" into sc-dev 2021-07-12 20:47:53 +00:00
TreeHugger Robot
e5a21905b8 Merge "Adding more diags for TAPL actions that change Launcher state" into sc-dev 2021-07-06 18:59:52 +00:00
vadimt
9960884744 Adding more diags for TAPL actions that change Launcher state
Test: presubmit
Bug: 187761685
Change-Id: Ia3effe12d9c0448fe3b15909662755ee35b8ef51
Merged-In: I11a29956613a4a211d49ee3df6d78e0000b80ced
2021-07-03 00:53:55 +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
vadimt
7bd2a77144 Adding more diags for TAPL actions
Ones that change Launcher state.

Test: presubmit
Bug: 187761685
Change-Id: I11a29956613a4a211d49ee3df6d78e0000b80ced
2021-07-02 21:36:11 +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
93eac82376 Merge "Converting some TAPL sequence mismatches to human-readable diags." into sc-dev am: eead98d493
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15150391

Change-Id: I56e042d5f646cd13058f7e5127faf4cdd81d17a1
2021-06-30 23:17:22 +00:00
Vadim Tryshev
eead98d493 Merge "Converting some TAPL sequence mismatches to human-readable diags." into sc-dev 2021-06-30 23:03:34 +00:00
vadimt
4903c7823e Converting some TAPL sequence mismatches to human-readable diags.
Test: local runs
Bug: 187761685
Change-Id: Ie2c64a22f56b0bed1cd175486b42beedb06285cc
2021-06-30 13:58:02 -07: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
Yogisha Dixit
ba28286260 Merge "Log widgets source." into sc-dev am: f9acf1d5d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14690879

Change-Id: I2fa39b66ca31549f7754657b7d3bde6bdf8a5f59
2021-06-30 18:33:44 +00:00
Yogisha Dixit
658c5dafd4 Log widgets source.
Test: manual
(1) Upgrading to new DB version is successful (no errors thrown in logcat)
(2) Widgets that were added with the old DB version have CONTAINER_UNKNOWN as their source container
(3) Widgets that are added with the new DB version still log source container after reboot
Bug: 185778648
Change-Id: Iaa38f0be6bc4cb0d29842f9a2ea0d08de000c930
2021-06-30 17:48:14 +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