OSDN Git Service

Fix BluetoothPairingDialogTest to not expect device name
authorAntony Sargent <asargent@google.com>
Thu, 7 Sep 2017 18:46:58 +0000 (11:46 -0700)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 4 Jan 2018 19:31:40 +0000 (19:31 +0000)
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)

tests/robotests/src/com/android/settings/bluetooth/BluetoothPairingDialogTest.java

index fba11de..80b4810 100644 (file)
@@ -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