summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/utils/ViewUtils.java
blob: 01ee3e9b9fa97ffa2828d4ee64fea555d6bd98e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.mapbox.mapboxsdk.testapp.utils;

import android.support.annotation.IdRes;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.matcher.ViewMatchers.withId;

public class ViewUtils {

    public static void clickView(@IdRes int viewRes) {
        onView(withId(viewRes))
                .perform(click());
    }
}