Commit Graph

4240 Commits

Author SHA1 Message Date
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
vadimt b8cb393f62 TAPL: swiping up from workspace always starts at the screen bottom
This avoids accidentally dragging an icon from hotseat on ultra-slow
devices.

Change-Id: Id2378a25972bc17dd227e7c227bf963fd1c0e4b2
2019-06-24 17:05:12 -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
Vadim Tryshev b4ff312181 Merge "Tests: waiting for nav bar to match nav mode" into ub-launcher3-qt-dev 2019-06-20 21:39:32 +00:00
vadimt e244a5802d Tests: waiting for nav bar to match nav mode
Change-Id: Ib17fce4577e1e2c585108f0e95a98fad710e5eb2
2019-06-20 14:26:19 -07:00
vadimt f806125f99 TAPL: switching dismissing tasks to a model-time gesture
Change-Id: I4068c4102cd881b89b680c61699ba78832499a3d
2019-06-20 12:31:01 -07:00
Vadim Tryshev 074b1434ae Merge "Enabling tests in landscape mode" into ub-launcher3-qt-dev 2019-06-17 22:53:27 +00:00
vadimt 06d30e54d5 Enabling tests in landscape mode
Bug: 121280703
Change-Id: I3245ca8d0b0496035658ce2a602882a62942f3f1
2019-06-17 15:13:25 -07:00
vadimt 921163a3e8 Restoring wait time 1 min
Apparently, some tests fail with 10 sec

Bug: 133765434
Change-Id: I13fc39c42c665675d15a66da99454e05387c11f4
2019-06-17 13:24:40 -07:00
vadimt ce04131f1a Improving TAPL diags
Change-Id: Iee84b64618eebf80f755575c2d27660c12e9d7c2
2019-06-14 11:46:12 -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
Vadim Tryshev c0893bc33e Merge "Switched scrolling in all apps to the model-time scrolling" into ub-launcher3-qt-dev 2019-06-13 20:56:55 +00:00
vadimt 91cd0b78e6 Switched scrolling in all apps to the model-time scrolling
Plus, removed unnecessary code.

Bug: 132900132
Change-Id: Ia6ebca15e4e8730787bfe782dbdd83bbe9186ee6
2019-06-13 13:35:01 -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 a9e45099c4 Merge "Making sure that we drag icon far enough to cross the threshold" into ub-launcher3-qt-dev
am: 5d8283a87d

Change-Id: Ie54994f1f1851d277cb79a25223b844f20a8082e
2019-06-10 17:51:03 -07:00
vadimt c026bf2f95 Making sure that we drag icon far enough to cross the threshold
Tests dragged icon from all apps to workspace by dragging it to the
center of the screen.

If the icon is close enough to the center, this may not trigger the
dragging condition.

Fixing by dragging far enough.

Bug: 133009122
Change-Id: I68127714ab3694f2639b4acf530e2736ca4dbdf3
2019-06-10 15:36:30 -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
TreeHugger Robot bfe171f9cb Merge "Add tracing for b/134532571" into ub-launcher3-qt-dev 2019-06-07 00:10:30 +00:00
vadimt 0f08db5eeb Add tracing for b/134532571
Bug: 134172603
Bug: 134532571
Change-Id: I75c8e0212a9b35d33842d5380fbe733b486be932
2019-06-06 17:00:57 -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 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
Vadim Tryshev 43522d25f2 Merge "Annotating hierarchy dump for the error description" into ub-launcher3-qt-dev 2019-05-31 18:54:02 +00:00
vadimt 8fcf7059ed Annotating hierarchy dump for the error description
Change-Id: I10285d451f4816b4988ce0645669b9ec9cceac81
2019-05-31 11:32:09 -07:00
Vadim Tryshev 5d7dbd914a Merge "Waiting for the recycler to populate when opening all apps" into ub-launcher3-qt-dev 2019-05-30 22:20:49 +00:00
vadimt 55da87181c Waiting for the recycler to populate when opening all apps
Change-Id: Ia6d452f9b02f02c1414eaaa9eaee9a70a4664a4a
2019-05-30 14:55:26 -07:00
Vadim Tryshev 5f642bf783 Merge "Adding debug tracing for a lab-only issue" into ub-launcher3-qt-dev 2019-05-30 17:58:04 +00:00
Vadim Tryshev 1c9b6293c8 Merge "Add debug tracing for a lab-only flake" into ub-launcher3-qt-dev 2019-05-30 17:46:10 +00:00
vadimt 26185e1fed Adding debug tracing for a lab-only issue
Task doesn't get resumed upon clicking at it.

Bug: 133765434
Change-Id: I8c5c1308041949d94c6982c78b8337ea81ad400f
2019-05-30 10:30:32 -07:00
Vadim Tryshev a993c2bf52 Merge "Printing TouchInteractionService state on test failures" into ub-launcher3-qt-dev 2019-05-30 01:34:54 +00:00
vadimt 1b902a3128 Printing TouchInteractionService state on test failures
Change-Id: I41078238c8f49c929ccb026ca329e730ab96822c
2019-05-29 14:44:47 -07:00
vadimt 17f9d57ac7 Add debug tracing for a lab-only flake
This time, Launcher doesn't send a completion event upon switching from
Home to all apps.

Bug: 133867119
Change-Id: I3738cf10a14ea288df2dfda387aafda022beb349
2019-05-29 14:10:28 -07:00
TreeHugger Robot ee20f0eeb7 Merge "More logging for lab-only flake when an app doesn't start" into ub-launcher3-qt-dev 2019-05-29 19:35:57 +00:00
vadimt 8296c6132d Enabling tests for pausing apps
Bug: 123892607
Change-Id: I1fa90f6dd4312b9311b8e706b2119dc04e3e2389
2019-05-29 12:07:55 -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 f9bf37d569 Increasing activated-task wait time to 60000 ms
Bug: 112282235
Change-Id: I14f63ce77395b9f95743a6fb36c0b02a80a8983f
2019-05-28 18:35:36 -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
vadimt 5aef526e95 More logging for lab-only flake when an app doesn't start
I suspect that All Apps gets refreshed around the time of the click.

Bug: 132900132
Change-Id: I6d3053f7d8f998e08ca495c005e14ddece634164
2019-05-28 18:28:09 +00:00
Vadim Tryshev ebd5e88164 Merge "Launcher reports whe 0-button swipe-up gesture pause is detected." into ub-launcher3-qt-dev 2019-05-25 02:44:30 +00:00
vadimt 2d6cd80bc9 Launcher reports whe 0-button swipe-up gesture pause is detected.
This eliminates an unreliable timeout.

Also removing an unnecessary check for harness that is done by the
called method.

Change-Id: If954580060415cbb2952532c16ea0ae4dc7b9469
2019-05-24 19:28:40 -07:00