From f20e0a492b3f414d667693fa121f2b76fe47f150 Mon Sep 17 00:00:00 2001 From: Antony Sargent Date: Thu, 7 Sep 2017 11:46:58 -0700 Subject: [PATCH] Fix BluetoothPairingDialogTest to not expect device name The functional fix for b/62672248 in ag/2856166 removes the device name from the text near the checkbox in the bluetooth pairing dialog, so we need to stop checking for it in this robotest. However, that functional fix needs to be in a separate CL from this fix for the robotest, because the robotest doesn't exist on some of the older branches where the functional fix needs to be backported. Bug: 62672248 Test: RunSettingsRoboTests Change-Id: I17ff3e4f13c20d58cc4027557f275d296ecccc95 --- .../src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java index 73f6b848ac..f2e4912add 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java @@ -269,7 +269,6 @@ public class BluetoothPairingDialogTest { CheckBox sharingCheckbox = (CheckBox) frag.getmDialog() .findViewById(R.id.phonebook_sharing_message_confirm_pin); assertThat(sharingCheckbox.getVisibility()).isEqualTo(View.VISIBLE); - assertThat(sharingCheckbox.getText().toString().contains(FAKE_DEVICE_NAME)).isTrue(); } @Test -- 2.11.0