mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Use localized message in NearbyActivityTest
This commit is contained in:
parent
473c0e7e47
commit
05e075556f
1 changed files with 8 additions and 7 deletions
|
|
@ -1,20 +1,20 @@
|
||||||
package fr.free.nrw.commons;
|
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.espresso.assertion.ViewAssertions;
|
||||||
import android.support.test.filters.LargeTest;
|
import android.support.test.filters.LargeTest;
|
||||||
import android.support.test.rule.ActivityTestRule;
|
import android.support.test.rule.ActivityTestRule;
|
||||||
import android.support.test.runner.AndroidJUnit4;
|
import android.support.test.runner.AndroidJUnit4;
|
||||||
|
|
||||||
import fr.free.nrw.commons.nearby.NearbyActivity;
|
|
||||||
|
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
|
import fr.free.nrw.commons.nearby.NearbyActivity;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public class NearbyActivityTest {
|
public class NearbyActivityTest {
|
||||||
|
|
@ -24,6 +24,7 @@ public class NearbyActivityTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testActivityLaunch() {
|
public void testActivityLaunch() {
|
||||||
onView(withText("Nearby Places")).check(ViewAssertions.matches(isDisplayed()));
|
onView(withText(R.string.title_activity_nearby))
|
||||||
|
.check(ViewAssertions.matches(isDisplayed()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue