Fix errors of e2e tests.

This commit is contained in:
youtaol
2012-11-07 17:59:09 +08:00
parent 3da337b91b
commit ccdd33bcca
3 changed files with 6 additions and 3 deletions
@@ -57,8 +57,6 @@ public class ExportAndImportTest extends ActivityInstrumentationTestCase2<TrackL
// Create a empty track.
EndToEndTestUtils.createSimpleTrack(0, true);
instrumentation.waitForIdleSync();
EndToEndTestUtils.SOLO.goBack();
instrumentation.waitForIdleSync();
checkExportAndImport();
}
@@ -86,7 +86,6 @@ public class MenuItemsTest extends ActivityInstrumentationTestCase2<TrackListAct
*/
public void testSearch() {
EndToEndTestUtils.createSimpleTrack(0, true);
EndToEndTestUtils.SOLO.goBack();
EndToEndTestUtils.findMenuItem(activityMyTracks.getString(R.string.menu_search), true);
EndToEndTestUtils.enterTextAvoidSoftKeyBoard(0, EndToEndTestUtils.trackName);
sendKeys(KeyEvent.KEYCODE_ENTER);
@@ -144,5 +144,11 @@ public class PauseRecordingTest extends ActivityInstrumentationTestCase2<TrackLi
assertEquals(expectResumeNumber, numberOfResumePoint);
}
}
@Override
protected void tearDown() throws Exception {
EndToEndTestUtils.SOLO.finishOpenedActivities();
super.tearDown();
}
}