diff --git a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java index fafb3b19b..9fb0d2cf0 100644 --- a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java +++ b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java @@ -21,6 +21,10 @@ import com.google.android.maps.mytracks.R; import android.annotation.TargetApi; import android.app.Instrumentation; import android.test.ActivityInstrumentationTestCase2; +import android.view.KeyEvent; +import android.widget.EditText; + +import java.util.ArrayList; /** * Tests some menu items of MyTracks. @@ -73,6 +77,21 @@ public class MenuItemsTest extends ActivityInstrumentationTestCase2 editTexts = EndToEndTestUtils.SOLO.getCurrentEditTexts(); + EndToEndTestUtils.SOLO.enterText(editTexts.get(0), EndToEndTestUtils.trackName); + sendKeys(KeyEvent.KEYCODE_ENTER); + instrumentation.waitForIdleSync(); + assertEquals(1, EndToEndTestUtils.SOLO.getCurrentListViews().size()); + } @Override protected void tearDown() throws Exception {