package fr.free.nrw.commons;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withText;

import android.support.test.espresso.assertion.ViewAssertions;
import android.support.test.filters.LargeTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;

import fr.free.nrw.commons.nearby.NearbyActivity;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

@LargeTest
@RunWith(AndroidJUnit4.class)
public class NearbyActivityTest {
    @Rule
    public final ActivityTestRule<NearbyActivity> nearby =
            new ActivityTestRule<>(NearbyActivity.class);

    @Test
    public void testActivityLaunch() {
        onView(withText("Nearby Places")).check(ViewAssertions.matches(isDisplayed()));
    }
}

@@ -27,223 +27,8 @@
 s;%0A%0A
-import static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withText;%0A%0A
 impo
@@ -86,16 +86,16 @@
 rtions;%0A
+
 import a
@@ -239,59 +239,8 @@
 4;%0A%0A
-import fr.free.nrw.commons.nearby.NearbyActivity;%0A%0A
 impo
@@ -315,16 +315,282 @@
 nWith;%0A%0A
+import fr.free.nrw.commons.nearby.NearbyActivity;%0A%0Aimport static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withText;%0A%0A
 @LargeTe
@@ -861,25 +861,57 @@
 ext(
-%22Nearby Places%22))
+R.string.title_activity_nearby))%0A                
 .che

Use localized message in NearbyActivityTest