forked from upstream-mirrors/OpenTracks
Fix an error of endtoend test.
This commit is contained in:
+1
@@ -961,6 +961,7 @@ public class EndToEndTestUtils {
|
|||||||
findMenuItem(activityMytracks.getString(R.string.menu_insert_marker), true);
|
findMenuItem(activityMytracks.getString(R.string.menu_insert_marker), true);
|
||||||
enterTextAvoidSoftKeyBoard(0, WAYPOINT_NAME);
|
enterTextAvoidSoftKeyBoard(0, WAYPOINT_NAME);
|
||||||
SOLO.clickOnButton(activityMytracks.getString(R.string.generic_add));
|
SOLO.clickOnButton(activityMytracks.getString(R.string.generic_add));
|
||||||
|
instrumentation.waitForIdleSync();
|
||||||
if (hasGpsSingal) {
|
if (hasGpsSingal) {
|
||||||
Assert.assertTrue(SOLO.waitForText(WAYPOINT_NAME, 1, LONG_WAIT_TIME, true));
|
Assert.assertTrue(SOLO.waitForText(WAYPOINT_NAME, 1, LONG_WAIT_TIME, true));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
@@ -54,6 +54,7 @@ public class StressTest extends ActivityInstrumentationTestCase2<TrackListActivi
|
|||||||
instrumentation = getInstrumentation();
|
instrumentation = getInstrumentation();
|
||||||
trackListActivity = getActivity();
|
trackListActivity = getActivity();
|
||||||
EndToEndTestUtils.setupForAllTest(instrumentation, trackListActivity);
|
EndToEndTestUtils.setupForAllTest(instrumentation, trackListActivity);
|
||||||
|
BigTestUtils.unlockAndWakeupDevice();
|
||||||
startTime = System.currentTimeMillis();
|
startTime = System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user