85 Commits

Author SHA1 Message Date
Winson Chung
0ef10a458d Skip tests for overlays that don't exist on device
Bug: 138401738
Bug: 138227387
Change-Id: If661fd342e1382915485bccdf6ae2c9e77a92bc4
2019-07-26 00:09:43 +00:00
vadimt
7593dc995b NavigationModeSwitchRule: log exception before 'finally'
Change-Id: I158105da467e2759fec6fa5d8acd582b2e95f7c5
2019-07-25 12:16:31 -07:00
vadimt
cd7b00853b Adding debug tracing
Bug: 138251824
Change-Id: Ibe3de964aeacbf83fd46cc53fda7d15c9401fe4d
2019-07-23 16:49:48 -07:00
TreeHugger Robot
160134e0b1 Merge "Fix overshoot velocity in 2-button landscape mode" into ub-launcher3-qt-r1-dev 2019-07-16 17:38:05 +00:00
Tony
5818f9b3c5 Fix overshoot velocity in 2-button landscape mode
Now we use the velocity towards the middle of the screen
(e.g. x when in landscape) instead of always using y.

Test: testBackground with @PortraitLandscape

Bug: 135567630
Change-Id: I77ab6bdf0d556475a6c182ae91914a718a81e1c4
2019-07-12 18:02:09 -07:00
vadimt
d91cec72fe Simplifying switching to home for some tests
Change-Id: I696d0267a2c36a18080396657bed07f7b1654a7d
2019-07-12 12:26:08 -07:00
vadimt
83d5eef5a5 Temporary workarounds to make tests pass on a virtual device
Bug: 136278866
Change-Id: I198cb4cdf94c2b1151b4b7249ae10dbcaa99a4fd
2019-06-28 13:12:58 -07:00
vadimt
26cfff41ba Taking screenshots for local tests for FallbackRecentsTest
Change-Id: I604e7e90f2146069827b520d44db1854edc7aa77
2019-06-25 16:26:33 -07:00
Vadim Tryshev
7946f55742 Revert "Enable @PortraitLandscape for testBackground"
This reverts commit b6e2cd8546.

Reason for revert: b/135567630

Change-Id: I4cd87356177a141c99e3865b8794de58386d0f49
2019-06-22 00:30:57 +00:00
vadimt
b6e2cd8546 Enable @PortraitLandscape for testBackground
Now that Recents rotation crash is fixed

Change-Id: Ibca9460e45fc533e414537f7923a2d09fc59f58a
2019-06-21 14:32:17 -07:00
vadimt
e244a5802d Tests: waiting for nav bar to match nav mode
Change-Id: Ib17fce4577e1e2c585108f0e95a98fad710e5eb2
2019-06-20 14:26:19 -07:00
vadimt
06d30e54d5 Enabling tests in landscape mode
Bug: 121280703
Change-Id: I3245ca8d0b0496035658ce2a602882a62942f3f1
2019-06-17 15:13:25 -07:00
Vadim Tryshev
0d5bd65e6e Merge "After switching nav mode, wait for the sysui mode to sync" into ub-launcher3-qt-dev 2019-06-14 01:53:26 +00:00
vadimt
5ad52ec092 After switching nav mode, wait for the sysui mode to sync
Bug: 133867119
Change-Id: I0290753aa295bc3167e1d396cedd410c77413579
2019-06-13 18:42:25 -07:00
Sunny Goyal
5b636ebfd4 Optimizing some layouts in taskview
> Recycling DigitalWellBeingToast so that the view is not inflated everytime
> Simplifying DigitalWellBeingToast to use a single text view
> Adding support for footers in taskView without creating additional layout

Bug: 122345781
Change-Id: Ia889819b93eb8644532ea95c6767554874d5e2d1
2019-06-13 10:39:46 -07:00
vadimt
87fbd33a37 Not using settings app in tests
Change-Id: I7542dab07a0d5a76cc90f4b5eee0d376b5d8ca11
2019-06-12 15:26:27 -07:00
vadimt
44e9a873fc Test: using RuleChain to create a correct order of rules.
Change-Id: I2eeb933eab8e5f19b1f80d47566a511ddbdeb28b
2019-06-06 14:02:33 -07:00
vadimt
63013c5e57 Temporarily not using RuleChain as it mysteriously breaks tests
Change-Id: I8bdd9a8ea12cfdbd92fe724181e7479cadcb26fe
2019-06-05 18:34:23 -07:00
vadimt
7a38854284 Taking local screenshot before navigation state is restored
Change-Id: Id8003b17c68af5b4882bdbf5e14a142875791cbc
2019-06-05 16:18:55 -07:00
vadimt
b06f9f8c78 Increasing wait time after mode switch.
This is temporary. Apparently, it takes time for Sys UI to update after
the mode switch.

Change-Id: I434b86af15d9987a448682684c790d89acab85dc
2019-05-29 13:05:06 -07:00
Sunny Goyal
c62699fd63 Merge "Removing prediciton loading state" into ub-launcher3-qt-dev 2019-05-24 22:01:09 +00:00
vadimt
addaab60fa Adding myself as an owner of test directories
Change-Id: I3d6649a2b804715cebb80b8cac881ef227738088
2019-05-24 10:54:12 -07:00
Sunny Goyal
9820c05f2b Removing prediciton loading state
Also fixing test flakyness due to delayed prediction loading

Bug: 132993129
Bug: 131854153
Change-Id: I85f7afff0e3ee0ca9e40e92e91681f797a0bc2de
2019-05-23 17:01:19 -07:00
TreeHugger Robot
571e51161c Merge "Quick patch for PredictionUiStateManager.applyState interrupting allapps" into ub-launcher3-qt-dev 2019-05-23 20:53:27 +00:00
vadimt
0c1ed7cb4c Quick patch for PredictionUiStateManager.applyState interrupting allapps
Constructor of PredictionUiStateManager posts an action in 5 sec, which
may interfere with the process of opening all apps.

Waiting until the posted action happens.

Hopefully this will fix massive flakes.

Bug: 131854153
Change-Id: I6544eae1a3b063c03e78185826c05a76add1f71b
2019-05-23 12:36:32 -07:00
vadimt
40bbfbed0f Reducing test wait time from 60 sec to 10 sec
Bug: 112282235
Bug: 121279417
Change-Id: Id88e782145b5fdae42354f6fce830aa05b78857a
2019-05-23 10:23:41 -07:00
vadimt
c328ac56cf Make every UI test generate screenshots for local test runs
Change-Id: Idb7962e62c0c95f8a50792e9342562c6d8b6ba42
2019-05-17 18:19:13 -07:00
vadimt
a68874e1cb Deinitialize prediction tests
Change-Id: Id97c509a7b609f2ba8b081c25712b24b50ec9ecf
2019-05-15 13:53:50 -07:00
George Hodulik
426d3650ae Use new not-deprecated builder constructors for AppTarget
Bug: 132458790
Test: Builds now
Change-Id: I20109d868d2ddd4434bc7b2e812219ec853161d8
2019-05-10 17:11:15 -07:00
Tony
9aaa92672d Move InputConsumers to new inputconsumers package
Change-Id: I3318784523b8ff1b9468cbfed3a2682985274ea8
2019-05-09 14:37:37 -05:00
vadimt
f55e87c36b Fixing AppPredictionsUITests
Bug: 131772711
Bug: 131188880
Change-Id: Ic6556b26464766294ced7f85af716b0a4eb51ca1
2019-05-06 16:14:39 -07:00
Vadim Tryshev
2c99205461 Merge "Reenabling switching between nav modes in tests" into ub-launcher3-qt-dev 2019-05-03 17:42:20 +00:00
vadimt
c655d7a52d Disabling testPredictionExistsInAllApps
It fails in the lab, and locally, when being run as a part of the whole
test suite.

Bug: 131772711
Change-Id: Ida5f384eb7115303e1315928822566150e1d852c
2019-05-02 17:39:22 -07:00
Sunny Goyal
c7fefa6151 Disabling flaky test
Bug: 131772711
Change-Id: I98a20223845aa66c77e7a4b6fc1b9415ed046a86
2019-05-01 15:53:56 -07:00
vadimt
50af77bc46 Reenabling prediction tests
Bug: 131188880
Change-Id: Ie06a39a206a84cdf9384560c0d8498e51af957e5
2019-05-01 14:54:28 -07:00
vadimt
bcf0d1e082 Reenabling switching between nav modes in tests
Bug: 130558787
Bug: 131419978
Bug: 131630813
Change-Id: I8d62c7f2b33ac94bd4f899f7c8ed00c8293841e7
2019-05-01 14:35:04 -07:00
Vadim Tryshev
dffb214d0f Merge "Not using Contacts app" into ub-launcher3-qt-dev 2019-05-01 19:53:42 +00:00
vadimt
f1e0c90a3b Not using Contacts app
Bug: 131628231
Change-Id: If877cc95879263330b7bbd344ddd3a526a5e6fac
2019-05-01 12:21:56 -07:00
Sunny Goyal
27283f7ea8 Setting predition enabled/disabled state based on callbacks from the service
> If no callback is received within a timeout, it is set to disabled

Bug: 131188880
Change-Id: Ie6022b190a2504739f1569a500d6f5cc1566d373
2019-04-30 12:06:25 -07:00
Vadim Tryshev
9736474072 Merge "Disabling fallback overview tests until the bug is fixed" into ub-launcher3-qt-dev 2019-04-30 01:10:51 +00:00
vadimt
de84db9890 Disabling fallback overview tests until the bug is fixed
Please reenable once fixed.

Bug: 131630813
Change-Id: Idb6f59c5e785180c96fce10365a2b070558abcdd
2019-04-29 16:28:29 -07:00
Vadim Tryshev
203dde3999 Merge "Disabling AppPredictionsUITests" into ub-launcher3-qt-dev 2019-04-29 23:03:17 +00:00
vadimt
1d20590310 Disabling AppPredictionsUITests
Also I recommend not using TAPL here, but follow this:
https://docs.google.com/presentation/d/1jyS_AIqevT22mk3SpfFS6paW98QLoJ_Fu7DgpXIgZ2g/edit#slide=id.g3f7630d0d8_0_9
https://docs.google.com/presentation/d/1jyS_AIqevT22mk3SpfFS6paW98QLoJ_Fu7DgpXIgZ2g/edit#slide=id.g435cf3d76d_1_113

Bug: 131188880
Change-Id: Ib01197acbe3ea68e27f121b1c6d8304bbff9696f
2019-04-26 14:12:29 -07:00
vadimt
9565c2a071 Running tests only in 1 nav mode
Pixel1: 3-button
Pixel2: 2-button
Pixel3: 0-button

This is a temporary workaround for the listed bugs.

Bug: 130558787
Bug: 131419978
Change-Id: Ic57422c7ca8e9985fc0613239c803149e66d907f
2019-04-26 13:22:28 -07:00
vadimt
042f2e33fb Temporarily disabling 3-button testing mode
Bug: 131419978
Change-Id: I9a817140ee5e0fb8d40da67759399f85b0625da0
2019-04-26 11:44:52 -07:00
Vadim Tryshev
8bb8e56580 Merge "Set portrait orientation for FallbackRecentsTest" into ub-launcher3-qt-dev 2019-04-26 01:11:43 +00:00
vadimt
dd4d390f38 Set portrait orientation for FallbackRecentsTest
Bug: 131364673
Change-Id: I77f3058e09eadc5bcbfe48c768f78883082a526d
2019-04-25 17:53:26 -07:00
vadimt
55fa21eb95 Annotating DigitalWellBeingToastTest so that it actually runs in lab :)
And starting a test app :)))))

Change-Id: I3b326a40651b0e4293dee26e4ef5f991cd7b7d0d
2019-04-25 17:34:23 -07:00
vadimt
ab03a7eb19 Enable testStressSwipeToOverview()
Underlying issue has been fixed.

Bug: 129723135
Change-Id: I336de8bb38360ee83023caa17bc90a601db3b9e2
2019-04-25 11:57:41 -07:00
Sunny Goyal
77b3419ad5 Adding support for showing predicted apps as a floating row in all-apps
and overview

Bug: 130053407
Change-Id: Idb93a0ba6cfea8406f75ab86d9e0acde2fc04b3a
2019-04-23 14:26:44 -07:00