mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Change method name of EndToEndTestUtils.isEmulator() to EndToEndTestUtils.setIsEmulator(). And add comment in CreateAndSendTrackTest.
This commit is contained in:
+1
@@ -109,6 +109,7 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
|
||||
// Go back to track list.
|
||||
EndToEndTestUtils.SOLO.goBack();
|
||||
instrumentation.waitForIdleSync();
|
||||
// For all characters will be change to lower case during sendKeys() method, add to lower() method here.
|
||||
assertTrue(EndToEndTestUtils.SOLO.searchText(newTrackName.toLowerCase().replaceAll(" ", "")));
|
||||
assertTrue(EndToEndTestUtils.SOLO.searchText(newDesc.toLowerCase().replaceAll(" ", "")));
|
||||
}
|
||||
|
||||
+2
-3
@@ -121,7 +121,7 @@ public class EndToEndTestUtils {
|
||||
/**
|
||||
* Checks if the test is run under an emulator.
|
||||
*/
|
||||
static void isEmulator() {
|
||||
static void setIsEmulator() {
|
||||
isEmulator = android.os.Build.MODEL.equals("google_sdk");
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class EndToEndTestUtils {
|
||||
* @param activityMyTracks the startup activity
|
||||
*/
|
||||
static void setupForAllTest(Instrumentation instrumentation, TrackListActivity activityMyTracks) {
|
||||
isEmulator();
|
||||
setIsEmulator();
|
||||
EndToEndTestUtils.INSTRUMENTATION = instrumentation;
|
||||
EndToEndTestUtils.ACTIVITYMYTRACKS = activityMyTracks;
|
||||
EndToEndTestUtils.SOLO = new Solo(EndToEndTestUtils.INSTRUMENTATION,
|
||||
@@ -503,5 +503,4 @@ public class EndToEndTestUtils {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user