File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
androidTest/java/com/xxmassdeveloper/mpchartexample
main/java/com/xxmassdeveloper/mpchartexample/fragments Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,21 @@ class ViewPagerTest {
2525
2626 @Test
2727 fun smokeTestSimplyStart () {
28+ Thread .sleep(SHORT_DURATION_MS )
2829 onView(ViewMatchers .isRoot())
2930 .captureToBitmap()
3031 .writeToTestStorage(" ${javaClass.simpleName} _${nameRule.methodName} " )
3132
3233 repeat(4 ) {
3334 onView(withId(R .id.pager)).perform(swipeLeft())
35+ Thread .sleep(SHORT_DURATION_MS )
3436 onView(ViewMatchers .isRoot())
3537 .captureToBitmap()
3638 .writeToTestStorage(" ${javaClass.simpleName} _${nameRule.methodName} -${it} " )
3739 }
3840 }
41+
42+ companion object {
43+ private const val SHORT_DURATION_MS = 1500L
44+ }
3945}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class ViewPagerSimpleChartDemo : DemoBase() {
6969
7070 private fun showSnackbar (text : String ) {
7171 val viewPos : View = findViewById(android.R .id.content)
72- val snackbar = Snackbar .make(viewPos, text, Snackbar .LENGTH_LONG )
72+ val snackbar = Snackbar .make(viewPos, text, Snackbar .LENGTH_SHORT )
7373 val view = snackbar.view
7474 when (val params = view.layoutParams) {
7575 is CoordinatorLayout .LayoutParams -> {
You can’t perform that action at this time.
0 commit comments