diff options
author | 2025-03-13 07:34:22 -0700 | |
---|---|---|
committer | 2025-03-13 07:43:27 -0700 | |
commit | 87bfaa7868a89ea5a1ec00664505677a191a4a55 (patch) | |
tree | a5f0ef5f7c7b948e875e1080cbda1c2ac4208966 /tests | |
parent | 2f62693aee03f7c1c6c7c6518e96f33062ba9583 (diff) |
add waitForIdle(timeout)
test item will turn on the private space mode, and this mode turns on a
large number of app operations and multiuser operations, it will be
easier for low-end devices to run in complete.
Add test waitForIdle(timeout) to make sure time execute finish.
Bug: 403200469
Test: android.app.role.cts.RoleManagerTest
#openDefaultAppListAndSetDefaultAppThenIsDefaultAppForPrivateSpace
Change-Id: I107c5a3e2c9e3fce6f68e6cefba0c6133bd547d0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cts/role/src/android/app/role/cts/RoleManagerTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cts/role/src/android/app/role/cts/RoleManagerTest.java b/tests/cts/role/src/android/app/role/cts/RoleManagerTest.java index 00245a086..ce1c26d2d 100644 --- a/tests/cts/role/src/android/app/role/cts/RoleManagerTest.java +++ b/tests/cts/role/src/android/app/role/cts/RoleManagerTest.java @@ -873,6 +873,9 @@ public class RoleManagerTest { assertThat(privateProfile).isNotNull(); installPackage(APP_APK_PATH, privateProfile); installPackage(APP_CLONE_APK_PATH, privateProfile); + + UiAutomatorUtils.getUiDevice().waitForIdle(30 * 1000); + addRoleHolderAsUser(ROLE_NAME, APP_CLONE_PACKAGE_NAME, privateProfile); sContext.startActivity(new Intent(Settings.ACTION_MANAGE_DEFAULT_APPS_SETTINGS) |