forked from upstream-mirrors/OpenTracks
Fix an error of setting test.
This commit is contained in:
+4
-5
@@ -400,9 +400,9 @@ public class EndToEndTestUtils {
|
|||||||
if (trackNumber <= 0) {
|
if (trackNumber <= 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
View oneTrack = SOLO.getCurrentListViews().get(0).getChildAt(0);
|
||||||
|
trackName = (String) ((TextView) oneTrack.findViewById(R.id.list_item_name)).getText();
|
||||||
if (isClick) {
|
if (isClick) {
|
||||||
View oneTrack = SOLO.getCurrentListViews().get(0).getChildAt(0);
|
|
||||||
trackName = (String) ((TextView) oneTrack.findViewById(R.id.list_item_name)).getText();
|
|
||||||
SOLO.scrollUp();
|
SOLO.scrollUp();
|
||||||
SOLO.clickOnView(oneTrack);
|
SOLO.clickOnView(oneTrack);
|
||||||
}
|
}
|
||||||
@@ -983,9 +983,8 @@ public class EndToEndTestUtils {
|
|||||||
public static void findAndClickMyLocation(Activity activity) {
|
public static void findAndClickMyLocation(Activity activity) {
|
||||||
createTrackIfEmpty(1, false);
|
createTrackIfEmpty(1, false);
|
||||||
sendGps(30);
|
sendGps(30);
|
||||||
|
|
||||||
View myLocation = SOLO.getCurrentActivity()
|
View myLocation = SOLO.getCurrentActivity().findViewById(R.id.map_my_location);
|
||||||
.findViewById(R.id.map_my_location);
|
|
||||||
// Find the My Location button in another if null.
|
// Find the My Location button in another if null.
|
||||||
if (myLocation == null) {
|
if (myLocation == null) {
|
||||||
ArrayList<ImageButton> aa = SOLO.getCurrentImageButtons();
|
ArrayList<ImageButton> aa = SOLO.getCurrentImageButtons();
|
||||||
|
|||||||
Reference in New Issue
Block a user