-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6beb9c0
commit 9e8ba60
Showing
7 changed files
with
235 additions
and
221 deletions.
There are no files selected for viewing
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
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
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
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
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
97 changes: 48 additions & 49 deletions
97
sample/src/androidTest/java/com/ashokvarma/sample/HomeScreenTest.java
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 |
---|---|---|
@@ -1,49 +1,48 @@ | ||
//package com.ashokvarma.sample; | ||
// | ||
//import android.support.test.rule.ActivityTestRule; | ||
// | ||
//import com.ashokvarma.bottomnavigation.sample.HomeActivity; | ||
//import com.ashokvarma.bottomnavigation.sample.R; | ||
// | ||
//import org.junit.Rule; | ||
//import org.junit.Test; | ||
// | ||
//import static android.support.test.espresso.Espresso.onView; | ||
//import static android.support.test.espresso.action.ViewActions.click; | ||
//import static android.support.test.espresso.matcher.ViewMatchers.isRoot; | ||
//import static android.support.test.espresso.matcher.ViewMatchers.withId; | ||
// | ||
///** | ||
// * Class description | ||
// * | ||
// * @author ashokvarma | ||
// * @version 1.0 | ||
// * @see | ||
// * @since 26 May 2016 | ||
// */ | ||
//public class HomeScreenTest { | ||
// | ||
// @Rule | ||
// public ActivityTestRule<HomeActivity> mHomeActivityTestRule = | ||
// new ActivityTestRule<HomeActivity>(HomeActivity.class); | ||
// | ||
// | ||
// @Test | ||
// public void scrollHome_test() throws Exception { | ||
// onView(withId(R.id.nested_scroll_view)) | ||
// .perform(Utils.swipeUpSlow()); | ||
// | ||
// onView(isRoot()).perform(Utils.waitId(R.id.nested_scroll_view, 150 * 1000)); | ||
// | ||
// onView(withId(R.id.nested_scroll_view)) | ||
// .perform(Utils.swipeDownSlow()); | ||
// | ||
// onView(withId(R.id.items_3)) | ||
// .perform(click()); | ||
// | ||
// onView(isRoot()).perform(Utils.waitId(R.id.nested_scroll_view, 150 * 1000)); | ||
// | ||
// } | ||
// | ||
// | ||
//} | ||
package com.ashokvarma.sample; | ||
|
||
import android.support.test.rule.ActivityTestRule; | ||
|
||
import com.ashokvarma.bottomnavigation.sample.HomeActivity; | ||
import com.ashokvarma.bottomnavigation.sample.R; | ||
|
||
import org.junit.Rule; | ||
import org.junit.Test; | ||
|
||
import static android.support.test.espresso.Espresso.onView; | ||
import static android.support.test.espresso.action.ViewActions.click; | ||
import static android.support.test.espresso.matcher.ViewMatchers.isRoot; | ||
import static android.support.test.espresso.matcher.ViewMatchers.withId; | ||
|
||
/** | ||
* Class description | ||
* | ||
* @author ashokvarma | ||
* @version 1.0 | ||
* @see | ||
* @since 26 May 2016 | ||
*/ | ||
public class HomeScreenTest { | ||
|
||
@Rule | ||
public ActivityTestRule<HomeActivity> mHomeActivityTestRule = | ||
new ActivityTestRule<HomeActivity>(HomeActivity.class); | ||
|
||
|
||
@Test | ||
public void scrollHome_test() throws Exception { | ||
onView(withId(R.id.nested_scroll_view)) | ||
.perform(Utils.swipeUpSlow()); | ||
|
||
onView(isRoot()).perform(Utils.waitId(R.id.nested_scroll_view, 150 * 1000)); | ||
|
||
onView(withId(R.id.nested_scroll_view)) | ||
.perform(Utils.swipeDownSlow()); | ||
|
||
onView(withId(R.id.items_3)) | ||
.perform(click()); | ||
|
||
onView(isRoot()).perform(Utils.waitId(R.id.nested_scroll_view, 150 * 1000)); | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.