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 4aa21ab35..1525cd97d 100644 --- a/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java +++ b/MyTracksTest/src/com/google/android/apps/mytracks/endtoendtest/MenuItemsTest.java @@ -20,6 +20,10 @@ import com.google.android.maps.mytracks.R; 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. @@ -71,6 +75,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 {