From: Antony Sargent Date: Thu, 7 Sep 2017 18:46:58 +0000 (-0700) Subject: Fix BluetoothPairingDialogTest to not expect device name X-Git-Tag: android-x86-8.1-r1~6^2~1^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;ds=sidebyside;h=26e2b2456a444777de114f728c4dc2af88c2fb03;p=android-x86%2Fpackages-apps-Settings.git 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 (cherry picked from commit f20e0a492b3f414d667693fa121f2b76fe47f150) --- diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java index fba11de806..80b4810625 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java @@ -290,7 +290,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