Fixed delete contact test on 7 thumbs tablets
This commit is contained in:
parent
147309daa1
commit
2d28121e0e
3 changed files with 11 additions and 5 deletions
|
@ -52,7 +52,6 @@
|
|||
</LinearLayout>
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/controlsScrollView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/controlsScrollView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
|
|
@ -107,12 +107,18 @@ public class Contacts extends SampleTest {
|
|||
|
||||
solo.clickOnText(iContext.getString(org.linphone.test.R.string.contact_name));
|
||||
|
||||
//Scroll down a bit on some small screens to see the delete button
|
||||
((ScrollView)solo.getView(aContext.getString(org.linphone.R.id.controlsScrollView))).fullScroll(View.FOCUS_DOWN);
|
||||
|
||||
solo.clickOnText(aContext.getString(org.linphone.R.string.button_edit));
|
||||
solo.clickOnText(aContext.getString(org.linphone.R.string.delete_contact));
|
||||
|
||||
// Scroll down a bit on some small screens to see the delete button
|
||||
final ScrollView scrollView = (ScrollView)solo.getView(org.linphone.R.id.controlsScrollView);
|
||||
scrollView.getHandler().post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
scrollView.fullScroll(View.FOCUS_DOWN);
|
||||
}
|
||||
});
|
||||
solo.sleep(500);
|
||||
solo.clickOnText(aContext.getString(org.linphone.R.string.delete_contact));
|
||||
Assert.assertFalse(solo.searchText(iContext.getString(org.linphone.test.R.string.contact_name)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue