From 2473c6b3ec1741d8128fa834b206f3c6cbe4c1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Garc=C3=ADa=20de=20Prada?= Date: Tue, 14 Feb 2023 09:58:12 +0100 Subject: [PATCH] Fix login activity test --- .../com/owncloud/android/authentication/LoginActivityTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/owncloudApp/src/androidTest/java/com/owncloud/android/authentication/LoginActivityTest.kt b/owncloudApp/src/androidTest/java/com/owncloud/android/authentication/LoginActivityTest.kt index 55b023da0c8..cf165981f15 100644 --- a/owncloudApp/src/androidTest/java/com/owncloud/android/authentication/LoginActivityTest.kt +++ b/owncloudApp/src/androidTest/java/com/owncloud/android/authentication/LoginActivityTest.kt @@ -68,6 +68,7 @@ import com.owncloud.android.testutil.OC_BASIC_USERNAME import com.owncloud.android.testutil.OC_SERVER_INFO import com.owncloud.android.utils.CONFIGURATION_SERVER_URL import com.owncloud.android.utils.CONFIGURATION_SERVER_URL_INPUT_VISIBILITY +import com.owncloud.android.utils.NO_MDM_RESTRICTION_YET import com.owncloud.android.utils.matchers.assertVisibility import com.owncloud.android.utils.matchers.isDisplayed import com.owncloud.android.utils.matchers.isEnabled @@ -172,7 +173,7 @@ class LoginActivityTest { ) { every { mdmProvider.getBrandingBoolean(CONFIGURATION_SERVER_URL_INPUT_VISIBILITY, R.bool.show_server_url_input) } returns showServerUrlInput every { mdmProvider.getBrandingString(CONFIGURATION_SERVER_URL, R.string.server_url) } returns serverUrl - every { mdmProvider.getBrandingString(MdmProvider.NO_MDM_RESTRICTION_YET, R.string.webfinger_lookup_server) } returns webfingerLookupServer + every { mdmProvider.getBrandingString(NO_MDM_RESTRICTION_YET, R.string.webfinger_lookup_server) } returns webfingerLookupServer every { ocContextProvider.getBoolean(R.bool.use_login_background_image) } returns showLoginBackGroundImage every { ocContextProvider.getBoolean(R.bool.show_welcome_link) } returns showWelcomeLink every { ocContextProvider.getString(R.string.account_type) } returns accountType