-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13297 from nextcloud/feature/add-sso-activity-test
Add SSO Activity Theme Correctness Test
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
app/src/androidTest/java/com/nextcloud/client/sso/SSOActivityTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Nextcloud - Android Client | ||
* | ||
* SPDX-FileCopyrightText: 2024 Alper Ozturk <[email protected]> | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
package com.nextcloud.client.sso | ||
|
||
import androidx.test.espresso.intent.rule.IntentsTestRule | ||
import com.owncloud.android.AbstractIT | ||
import com.owncloud.android.ui.activity.SsoGrantPermissionActivity | ||
import org.junit.Rule | ||
import org.junit.Test | ||
|
||
class SSOActivityTests : AbstractIT() { | ||
|
||
@Suppress("DEPRECATION") | ||
@get:Rule | ||
var activityRule = IntentsTestRule(SsoGrantPermissionActivity::class.java, true, false) | ||
|
||
@Test | ||
fun testActivityTheme() { | ||
val sut = activityRule.launchActivity(null) | ||
assert(sut.binding != null) | ||
assert(sut.materialAlertDialogBuilder != null) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters