Update Tapl test for Private Space Add button
See artifact: https://android-build.corp.google.com/test_investigate/invocation/I00100010386298382/test/TR74629693245670294/?itab=tests&ttab=artifacts When aconfig flag is moved to staging the button is now "Add" rather than "Install" which will need to fix. bug: 360313403 Test: presubmit Flag: android.multiuser.enable_moving_content_into_private_space Change-Id: I3a3e658d1a9d2b9d0795b5cef5d062ddfbe2b8ba
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.launcher3.tapl;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.multiuser.Flags;
|
||||
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
@@ -26,6 +27,7 @@ import androidx.test.uiautomator.UiObject2;
|
||||
public class PrivateSpaceContainer {
|
||||
private static final String PS_HEADER_RES_ID = "ps_header_layout";
|
||||
private static final String INSTALL_APP_TITLE = "Install";
|
||||
private static final String ADD_APP_TITLE = "Add";
|
||||
private static final String DIVIDER_RES_ID = "private_space_divider";
|
||||
|
||||
private final LauncherInstrumentation mLauncher;
|
||||
@@ -62,7 +64,8 @@ public class PrivateSpaceContainer {
|
||||
|
||||
// Assert Install App Item is present in view.
|
||||
private void verifyInstallAppButtonIsPresent() {
|
||||
mAppList.getAppIcon(INSTALL_APP_TITLE);
|
||||
mAppList.getAppIcon(Flags.enableMovingContentIntoPrivateSpace() ? ADD_APP_TITLE :
|
||||
INSTALL_APP_TITLE);
|
||||
}
|
||||
|
||||
// Assert Install App Item is not present in view.
|
||||
|
||||
Reference in New Issue
Block a user