@@ -0,0 +1,3249 @@
+package cc.softwarefactory.lokki.android.espresso;%0A%0Aimport cc.softwarefactory.lokki.android.R;%0Aimport cc.softwarefactory.lokki.android.espresso.utilities.TestUtils;%0A%0Aimport static android.support.test.espresso.Espresso.onData;%0Aimport static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.action.ViewActions.click;%0Aimport static android.support.test.espresso.assertion.ViewAssertions.matches;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.hasDescendant;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.hasSibling;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withParent;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withText;%0Aimport static org.hamcrest.Matchers.allOf;%0Aimport static org.hamcrest.Matchers.instanceOf;%0Aimport static org.hamcrest.Matchers.is;%0A%0A%0Apublic class SettingsScreenTest extends LoggedInBaseTest %7B%0A    @Override%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A    %7D%0A%0A    private void enterSettingScreen() %7B%0A        getActivity();%0A        onView(withId(R.id.decor_content_parent)).perform(TestUtils.clickScreenPosition(0, 0));%0A        onView(withText(%22Settings%22)).perform(click());%0A    %7D%0A    %0A    %0A    // TEST%0A    %0A    public void testSettingsScreenShown() %7B%0A        enterSettingScreen();%0A        onView(withId(R.id.visibility)).check(matches(isDisplayed()));%0A        onView(withId(R.id.map_type)).check(matches(isDisplayed()));%0A    %7D%0A    %0A    public void testUserNameShown() %7B%0A        enterSettingScreen();%0A        onView(withId(R.id.user_name)).check(matches(isDisplayed()));%0A    %7D%0A%0A    public void testVisibilitySpinnerDefaultYes() %7B%0A        enterSettingScreen();%0A%0A        onView(allOf(withText(%22Yes%22), withParent(withId(R.id.spinner_visibility)))).check(matches(isDisplayed()));%0A    %7D%0A    %0A    public void testVisibilitySpinnerSelectNo() %7B%0A        enterSettingScreen();%0A        onView(withId(R.id.spinner_visibility)).perform(click());%0A        onData(allOf(is(instanceOf(String.class)), is(%22No%22))).perform(click());%0A        %0A        onView(allOf(withText(%22No%22), withParent(withId(R.id.spinner_visibility)))).check(matches(isDisplayed()));%0A    %7D%0A%0A    public void testMapTypeSpinnerDefault() %7B%0A        enterSettingScreen();%0A%0A        onView(allOf(withText(%22Default%22), withParent(withId(R.id.spinner_map)))).check(matches(isDisplayed()));%0A    %7D%0A%0A    public void testMapTypeSpinnerSelectSatellite() %7B%0A        enterSettingScreen();%0A        onView(withId(R.id.spinner_map)).perform(click());%0A        onData(allOf(is(instanceOf(String.class)), is(%22Satellite%22))).perform(click());%0A%0A        onView(allOf(withText(%22Satellite%22), withParent(withId(R.id.spinner_map)))).check(matches(isDisplayed()));%0A    %7D%0A%0A    public void testMapTypeSpinnerSelectHybrid() %7B%0A        enterSettingScreen();%0A        onView(withId(R.id.spinner_map)).perform(click());%0A        onData(allOf(is(instanceOf(String.class)), is(%22Hybrid%22))).perform(click());%0A%0A        onView(allOf(withText(%22Hybrid%22), withParent(withId(R.id.spinner_map)))).check(matches(isDisplayed()));%0A    %7D%0A%7D%0A

Add settings screen test