Improving "Add automatically" recognition

Bug: 138152531
Change-Id: I204233f06a80d2d17b24dd9622c7a2152b1303a0
This commit is contained in:
vadimt 2019-07-23 13:54:05 -07:00
parent 44515f42c0
commit 34828b1942
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@
package com.android.launcher3.tapl;
import static java.util.regex.Pattern.CASE_INSENSITIVE;
import androidx.test.uiautomator.By;
import androidx.test.uiautomator.UiObject2;
@ -23,7 +25,7 @@ import java.util.regex.Pattern;
public class AddToHomeScreenPrompt {
private static final Pattern ADD_AUTOMATICALLY =
Pattern.compile("ADD AUTOMATICALLY|Add automatically");
Pattern.compile("^Add automatically$", CASE_INSENSITIVE);
private final LauncherInstrumentation mLauncher;
private final UiObject2 mWidgetCell;