@@ -71,7 +71,7 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
7171 activityRule.launchActivity(null )
7272
7373 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 )))
7575 }
7676
7777 @Test
@@ -94,9 +94,9 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
9494 onView(withId(R .id.swipe_refresh)).perform(swipeDown())
9595
9696 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 )))
9898 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 )))
100100 }
101101
102102 @Test
@@ -118,9 +118,9 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
118118 activityRule.launchActivity(null )
119119
120120 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 )))
122122 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 )))
124124 }
125125
126126 @Test
@@ -139,7 +139,7 @@ class MainActivityTest : InjectableTest by InjectableTestImpl() {
139139 }
140140
141141 activityRule.launchActivity(null )
142- onView(withId(R .id.avatar )).perform(click())
142+ onView(withId(R .id.img_avatar )).perform(click())
143143
144144 verify(navigator).navigateToUserShow(1 )
145145 }
0 commit comments