fixed some tests
This commit is contained in:
parent
3bff3f5581
commit
c20e1cee4b
@ -31,23 +31,25 @@ class SwipeTest {
|
|||||||
ActivityScenario.launch(MainActivity::class.java)
|
ActivityScenario.launch(MainActivity::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
// fun swipingLeftOnSearchShowsCameraFragment() {
|
fun swipingLeftOnSearchShowsCameraFragment() {
|
||||||
// val tab: TabLayout = onView(withId(R.id.tabs))
|
onView(withId(R.id.main_activity_main_linear_layout))
|
||||||
//
|
.perform(swipeLeft()) // go to search
|
||||||
// onView(withId(R.id.main_activity_main_linear_layout))
|
.perform(swipeLeft())
|
||||||
// .perform(swipeLeft())
|
onView(withId(R.id.camera_fragment_main_linear_layout)).check(matches(isDisplayed()))
|
||||||
// onView(withId(R.id.camera_fragment_main_linear_layout)).check(matches(isDisplayed()))
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun swipingRightOnFavoriteShowsCameraFragment() {
|
fun swipingRightOnNotificationsShowsCameraFragment() {
|
||||||
onView(withId(R.id.main_activity_main_linear_layout))
|
onView(withId(R.id.main_activity_main_linear_layout))
|
||||||
|
.perform(swipeLeft())
|
||||||
|
.perform(swipeLeft())
|
||||||
|
.perform(swipeLeft()) // go to notifications
|
||||||
.perform(swipeRight())
|
.perform(swipeRight())
|
||||||
onView(withId(R.id.camera_fragment_main_linear_layout)).check(matches(isDisplayed()))
|
onView(withId(R.id.camera_fragment_main_linear_layout)).check(matches(isDisplayed()))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun swipingLeftOnShowsProfileFragment() {
|
fun swipingLeftShowsProfileFragment() {
|
||||||
onView(withId(R.id.view_pager))
|
onView(withId(R.id.view_pager))
|
||||||
.perform(swipeLeft())
|
.perform(swipeLeft())
|
||||||
.perform(swipeLeft())
|
.perform(swipeLeft())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user