Search in sources :

Example 1 with AuthenticatorActivity

use of com.owncloud.android.authentication.AuthenticatorActivity in project android by nextcloud.

the class AuthenticatorActivityIT method login.

@Test
@ScreenshotTest
public void login() {
    AuthenticatorActivity sut = activityRule.launchActivity(null);
    ((TextView) sut.findViewById(R.id.host_url_input)).setText(URL);
    sut.runOnUiThread(() -> sut.getAccountSetupBinding().hostUrlInput.clearFocus());
    screenshot(sut);
}
Also used : TextView(android.widget.TextView) AuthenticatorActivity(com.owncloud.android.authentication.AuthenticatorActivity) Test(org.junit.Test) ScreenshotTest(com.owncloud.android.utils.ScreenshotTest) ScreenshotTest(com.owncloud.android.utils.ScreenshotTest)

Aggregations

TextView (android.widget.TextView)1 AuthenticatorActivity (com.owncloud.android.authentication.AuthenticatorActivity)1 ScreenshotTest (com.owncloud.android.utils.ScreenshotTest)1 Test (org.junit.Test)1