From ca8885a549a4575f99fc1392aec82d2655586098 Mon Sep 17 00:00:00 2001 From: Yiyi Shen Date: Thu, 28 Sep 2023 14:49:03 +0800 Subject: [PATCH] Fix SettingsRoboTests for connecteddevice. Bug: 296507968 Test: atest Change-Id: I5b1e868efeffd0ae185c93623c1daa4a5486e751 --- .../ConnectedDeviceDashboardFragmentTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragmentTest.java b/tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragmentTest.java index 5f0f2b9dddf..d381975352e 100644 --- a/tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragmentTest.java +++ b/tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragmentTest.java @@ -52,7 +52,9 @@ import java.util.List; public class ConnectedDeviceDashboardFragmentTest { private static final String KEY_NEARBY_DEVICES = "bt_nearby_slice"; private static final String KEY_DISCOVERABLE_FOOTER = "discoverable_footer"; - private static final String KEY_SEE_ALL = "previously_connected_devices_see_all"; + private static final String KEY_SAVED_DEVICE_SEE_ALL = "previously_connected_devices_see_all"; + private static final String KEY_FAST_PAIR_DEVICE_SEE_ALL = "fast_pair_devices_see_all"; + private static final String KEY_FAST_PAIR_DEVICE_LIST = "fast_pair_devices"; private static final String KEY_ADD_BT_DEVICES = "add_bt_devices"; private static final String SETTINGS_PACKAGE_NAME = "com.android.settings"; private static final String SYSTEMUI_PACKAGE_NAME = "com.android.systemui"; @@ -92,7 +94,8 @@ public class ConnectedDeviceDashboardFragmentTest { .getNonIndexableKeys(mContext); assertThat(niks).containsExactly(KEY_CONNECTED_DEVICES, KEY_AVAILABLE_DEVICES, - KEY_NEARBY_DEVICES, KEY_DISCOVERABLE_FOOTER, KEY_SEE_ALL); + KEY_NEARBY_DEVICES, KEY_DISCOVERABLE_FOOTER, KEY_SAVED_DEVICE_SEE_ALL, + KEY_FAST_PAIR_DEVICE_SEE_ALL, KEY_FAST_PAIR_DEVICE_LIST); } @Test