Commit Graph

325 Commits

Author SHA1 Message Date
vadimt 8ed634a1e0 Moving enabling rotation for test
am: 003c94f10f

Change-Id: I24de80b311e3607731e8f33e151f6ff8bbddf792
2019-07-26 14:17:42 -07:00
vadimt 003c94f10f Moving enabling rotation for test
We needed to press home to wait until the launcher starts, now we simply
enable rotation once the Launcher gets created.

Change-Id: Ie99e5073c06f8da181262d32823116061c81d6f7
2019-07-26 20:31:35 +00:00
Vadim Tryshev a4b35696c9 Merge "Revert "Reenabling testPressHomeOnAllAppsContextMenu"" into ub-launcher3-qt-r1-dev
am: a864511293

Change-Id: I6bccaa2e07d1f5603cd07837f9e59c7f5cba37a0
2019-07-25 15:14:07 -07:00
Vadim Tryshev 004a5fe6c5 Revert "Reenabling testPressHomeOnAllAppsContextMenu"
This reverts commit 86f5da2d8f.

Reason for revert: Test fails in 2-button mode

Change-Id: I20163a658f731cf6ef27ce84f5f7c06919b7b9cd
2019-07-25 21:51:10 +00:00
Vadim Tryshev 176eee3cb7 Merge "Reenabling testPressHomeOnAllAppsContextMenu" into ub-launcher3-qt-r1-dev
am: f0cc40f8b0

Change-Id: I6201cf3b3f145535cab88269c8408dc01c113852
2019-07-25 12:46:37 -07:00
vadimt 86f5da2d8f Reenabling testPressHomeOnAllAppsContextMenu
Bug: 134074554
Change-Id: Icd23e2dcafab091e5406e84bb827bfc7177832ff
2019-07-25 12:06:32 -07:00
Vadim Tryshev a1db23c0a7 Merge "Checking Launcher internal integrity from tests" into ub-launcher3-qt-r1-dev
am: 7b0520afe4

Change-Id: Iffeb718669a22e99c7fe90989dee51b4d229dd51
2019-07-23 18:49:16 -07:00
vadimt 0dd1c782f0 Checking Launcher internal integrity from tests
In particular, we check that the stable Launcher state equals its
current state. This can help detect Launcher being in a corrupted state
as in b/133867119.

The check gets called by tests when the Launcher is not transitioning
from state to state.

Bug: 137307838
Change-Id: I3d36edff35e42d14be6b9a52351bd6f709be75e8
2019-07-23 18:07:25 -07:00
Vadim Tryshev 2adbee9a91 Merge "Logging original exception in PortraitLandscapeRunner" into ub-launcher3-qt-r1-dev
am: 3ab3c768f5

Change-Id: I9ce76715ff9970f031a326a81b167d0d9de2e740
2019-07-19 12:45:45 -07:00
vadimt 21cd128141 Logging original exception in PortraitLandscapeRunner
Change-Id: I672e563df45f1f0dcdda5b1f863919f0150e73e6
2019-07-19 12:12:49 -07:00
Sunny Goyal 9dbb27c09c Moving some utilities methods to separate class
Change-Id: I5094b22ddc77c45590cea1a5f5dead0dc7580abf
2019-07-17 15:15:07 -07:00
vadimt 8820399e57 Waiting for launcher to start in workTabExists()
Change-Id: I08c5385b188dda81ee0dfc1bfd639a0892bd6584
2019-07-15 13:30:48 -07:00
vadimt 092b6f8cbf Adding system health diags for inporoc tests
Bug: 133891845
Change-Id: I90161bfc9db5983a45dfb89728a82ec1e3d81f19
2019-07-15 12:29:13 -07:00
vadimt d91cec72fe Simplifying switching to home for some tests
Change-Id: I696d0267a2c36a18080396657bed07f7b1654a7d
2019-07-12 12:26:08 -07:00
vadimt e7a786ee96 Tests: Waiting for package-restart events when restarting Launcher
Bug: 136215685
Change-Id: Ia947994399220544c90bfc077437fc639e635a33
2019-06-28 17:14:37 -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 0b20a11d66 Converting even more tests to TAPL
Bug: 131116002
Bug: 115582915
Change-Id: Id36fca232b5aff5f6692142ce4a0c937d0531f4e
2019-06-27 18:38:09 +00:00
Vadim Tryshev 1703eb8b88 Merge "Revert "Converting even more tests to TAPL"" into ub-launcher3-qt-dev 2019-06-27 00:20:51 +00:00
Vadim Tryshev 007e7e94b3 Revert "Converting even more tests to TAPL"
This reverts commit 406d49bdd7.

Reason for revert: Breaks tests on Crosshatch

Change-Id: I95ff541dfe8f6f1d7e1913d209b53abfbebe5336
2019-06-27 00:03:14 +00:00
vadimt f45509ec8e Reenabling tests in OOP
Bug: 124524897
Change-Id: I8bdaa0d129c7366616359a3505f3d6b2d397e18f
2019-06-26 15:16:26 -07:00
vadimt 406d49bdd7 Converting even more tests to TAPL
Bug: 131116002
Bug: 115582915
Change-Id: I08587e7a50420e57970ed8feec4524111145dc31
2019-06-26 13:58:33 -07:00
vadimt 2d4b05f295 Converting more tests to TAPL
Bug: 131116002
Bug: 115582915
Change-Id: I3346f96ddba3224eb4b92b15344d71b8ed6e32e0
2019-06-26 11:23:23 -07:00
vadimt 3a6eedc61b Converting some widget tests to TAPL
Bug: 115582915
Change-Id: I07c6ca5ef712cf1a85d81e7d4b4bda3604777ac8
2019-06-25 18:34:48 -07:00
vadimt 26cfff41ba Taking screenshots for local tests for FallbackRecentsTest
Change-Id: I604e7e90f2146069827b520d44db1854edc7aa77
2019-06-25 16:26:33 -07:00
Vadim Tryshev e72363456e Merge "Workaround for b/135766310" into ub-launcher3-qt-dev 2019-06-21 21:33:16 +00:00
vadimt 1ce213888e Workaround for b/135766310
Bug: 135766310
Change-Id: I8ef40158d5b7f832be46ee2c2fe98a91a095ee82
2019-06-21 14:23:15 -07:00
vadimt 6346451bd6 Tests: fixing expected package name for AOSP tests
Change-Id: Id7a57d4bfcbed23ba20ca11846680fa1341e8a99
2019-06-21 10:58:03 -07:00
vadimt d11b604e19 Converting some tests to TAPL
Change-Id: I1b67f80d9d61792d5795f9638bf9d19919f36d39
2019-06-20 17:53:05 -07:00
vadimt 715de78e94 Tests: removing workaround for Overview crashing on rotation
Bug: 135287203
Change-Id: I9766f385be5331f56638438822f321ccd1efc920
2019-06-20 16:20:36 -07:00
vadimt 06d30e54d5 Enabling tests in landscape mode
Bug: 121280703
Change-Id: I3245ca8d0b0496035658ce2a602882a62942f3f1
2019-06-17 15:13:25 -07:00
Vadim Tryshev 643007d613 Merge "Not using settings app in tests" into ub-launcher3-qt-dev 2019-06-12 22:40:26 +00:00
vadimt 87fbd33a37 Not using settings app in tests
Change-Id: I7542dab07a0d5a76cc90f4b5eee0d376b5d8ca11
2019-06-12 15:26:27 -07:00
Vadim Tryshev 9d14e5520e Merge "Freezing all apps updates during certain tests" into ub-launcher3-qt-r1-dev 2019-06-07 01:34:30 +00: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 d4c90e12e9 Freezing all apps updates during certain tests
This CL adds a very low risk because most (but not all) changes affect
only Launcher behavior during the test.

This should fix a lab-only flake when all apps keeps changing while
the test is working with it.

Example: test figures out which icon to click, by the moment it clicks
there, there is another icon there, or the icon is under the search box,
and clicking opens IME.

Switching test devices to airplane mode didn't help. The earlier change
that prevents popup menu cancellation is not general enough.

Now the tests are given an API to explicitly freeze and unfreeze
all-apps, which should be a final solution.

Bug: 132900132
Bug: 133765434
Change-Id: I8b81cc9be004482beb6cdcdd05406e2d9b4c7629
2019-06-06 11:10:56 -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 1b902a3128 Printing TouchInteractionService state on test failures
Change-Id: I41078238c8f49c929ccb026ca329e730ab96822c
2019-05-29 14:44:47 -07:00
vadimt 3369d7308f Ignoring testPressHomeOnAllAppsContextMenu for now as it flakes
Bug: 132460627
Change-Id: I2af5bba289781a122cf9253833915b0e8cddd79c
2019-05-28 19:15:04 -07:00
vadimt aa8019308b Fixing pressHome when a context menu is visible
Bug: 132460627
Change-Id: I78064166fccd3a29bcb3fa6175bd4937ae032a98
2019-05-28 17:31:03 -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
TreeHugger Robot 1b9afd4f73 Merge "Reading navigation_bar_gesture_height for bottom swipe region" into ub-launcher3-qt-dev 2019-05-23 17:53:24 +00:00
Sunny Goyal f5d02b069a Reading navigation_bar_gesture_height for bottom swipe region
Bug: 132917885
Change-Id: I39d266fc34a69c3ba50246b5a66350942a85becb
2019-05-23 10:42:24 -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
Sunny Goyal 1b40b731b2 Using different resource size for touch region in landscape
Bug: 132917885
Change-Id: Ib702fd17fecff980db2e1d00f05cd055bcc3185a
2019-05-20 10:09:26 -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 c7bb8479e9 Fix pinning tests on android virtual device
Change-Id: I90a8753975538ab9864591a37a7d366e1222f2d8
2019-05-16 16:32:25 -07:00
vadimt 0edb04ca24 Fixing flakiness of widget tests
Change-Id: I1af6a733a3a7a89899c83d6714117ff9a51528d2
2019-05-13 18:28:19 -07:00