mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Test cases added for launcher.
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
2182f12311
commit
ccf0ee6d0e
1 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
package com.nmc.android.ui
|
||||
|
||||
import androidx.test.espresso.Espresso.onView
|
||||
import androidx.test.espresso.assertion.ViewAssertions.matches
|
||||
import androidx.test.espresso.matcher.ViewMatchers.isCompletelyDisplayed
|
||||
import androidx.test.espresso.matcher.ViewMatchers.withId
|
||||
import androidx.test.ext.junit.rules.ActivityScenarioRule
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.R
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class LauncherActivityIT : AbstractIT() {
|
||||
|
||||
@get:Rule
|
||||
val activityRule = ActivityScenarioRule(LauncherActivity::class.java)
|
||||
|
||||
@Test
|
||||
fun verifyUIElements() {
|
||||
waitForIdleSync()
|
||||
onView(withId(R.id.ivSplash)).check(matches(isCompletelyDisplayed()))
|
||||
onView(withId(R.id.tvSplash)).check(matches(isCompletelyDisplayed()))
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue