@@ -71,7 +71,7 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
71
71
activityRule.launchActivity(null )
72
72
73
73
onView(withId(R .id.list_post))
74
- .check(matches(atPositionOnView(0 , withText(" my test content" ), R .id.content )))
74
+ .check(matches(atPositionOnView(0 , withText(" my test content" ), R .id.tv_post_content )))
75
75
}
76
76
77
77
@Test
@@ -94,9 +94,9 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
94
94
onView(withId(R .id.swipe_refresh)).perform(swipeDown())
95
95
96
96
onView(withId(R .id.list_post))
97
- .check(matches(atPositionOnView(0 , withText(" my new content" ), R .id.content )))
97
+ .check(matches(atPositionOnView(0 , withText(" my new content" ), R .id.tv_post_content )))
98
98
onView(withId(R .id.list_post))
99
- .check(matches(atPositionOnView(1 , withText(" my test content" ), R .id.content )))
99
+ .check(matches(atPositionOnView(1 , withText(" my test content" ), R .id.tv_post_content )))
100
100
}
101
101
102
102
@Test
@@ -118,9 +118,9 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
118
118
activityRule.launchActivity(null )
119
119
120
120
onView(withId(R .id.list_post))
121
- .check(matches(atPositionOnView(0 , withText(" my test content" ), R .id.content )))
121
+ .check(matches(atPositionOnView(0 , withText(" my test content" ), R .id.tv_post_content )))
122
122
onView(withId(R .id.list_post))
123
- .check(matches(atPositionOnView(1 , withText(" my old content" ), R .id.content )))
123
+ .check(matches(atPositionOnView(1 , withText(" my old content" ), R .id.tv_post_content )))
124
124
}
125
125
126
126
@Test
@@ -139,7 +139,7 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
139
139
}
140
140
141
141
activityRule.launchActivity(null )
142
- onView(withId(R .id.avatar )).perform(click())
142
+ onView(withId(R .id.img_avatar )).perform(click())
143
143
144
144
verify(navigator).navigateToUserShow(1 )
145
145
}
0 commit comments