File tree 3 files changed +18
-5
lines changed
Jetchat/app/src/androidTest/java/com/example/compose/jetchat
Owl/app/src/androidTest/java/com/example/owl/ui
3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,10 @@ class ConversationTest {
116
116
@Test
117
117
fun jumpToBottom_snapsToBottomAfterUserInteracted () {
118
118
// First swipe
119
- composeTestRule.onNodeWithTag(ConversationTestTag ).performGesture {
119
+ composeTestRule.onNodeWithTag(
120
+ testTag = ConversationTestTag ,
121
+ useUnmergedTree = true // https://issuetracker.google.com/issues/184825850
122
+ ).performGesture {
120
123
this .swipe(
121
124
start = this .center,
122
125
end = Offset (this .center.x, this .center.y + 500 ),
@@ -160,7 +163,8 @@ class ConversationTest {
160
163
private fun openEmojiSelector () =
161
164
composeTestRule
162
165
.onNodeWithContentDescription(
163
- composeTestRule.activity.getString(R .string.emoji_selector_bt_desc)
166
+ label = composeTestRule.activity.getString(R .string.emoji_selector_bt_desc),
167
+ useUnmergedTree = true // https://issuetracker.google.com/issues/184825850
164
168
)
165
169
.performClick()
166
170
}
Original file line number Diff line number Diff line change @@ -154,7 +154,10 @@ class UserInputTest {
154
154
155
155
private fun openEmojiSelector () =
156
156
composeTestRule
157
- .onNodeWithContentDescription(activity.getString(R .string.emoji_selector_bt_desc))
157
+ .onNodeWithContentDescription(
158
+ label = activity.getString(R .string.emoji_selector_bt_desc),
159
+ useUnmergedTree = true // https://issuetracker.google.com/issues/184825850
160
+ )
158
161
.performClick()
159
162
160
163
private fun assertEmojiSelectorIsDisplayed () =
Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ class NavigationTest {
68
68
startActivity()
69
69
// The first screen should be the onboarding screen.
70
70
// Assert that the FAB label for the onboarding screen exists:
71
- composeTestRule.onNodeWithContentDescription(getOnboardingFabLabel()).assertExists()
71
+ composeTestRule.onNodeWithContentDescription(
72
+ label = getOnboardingFabLabel(),
73
+ useUnmergedTree = true // https://issuetracker.google.com/issues/184825850
74
+ ).assertExists()
72
75
}
73
76
74
77
@Test
@@ -78,7 +81,10 @@ class NavigationTest {
78
81
79
82
// Navigate to the next screen by clicking on the FAB
80
83
val fabLabel = getOnboardingFabLabel()
81
- composeTestRule.onNodeWithContentDescription(fabLabel).performClick()
84
+ composeTestRule.onNodeWithContentDescription(
85
+ label = fabLabel,
86
+ useUnmergedTree = true // https://issuetracker.google.com/issues/184825850
87
+ ).performClick()
82
88
83
89
// The first course should be shown
84
90
composeTestRule.onNodeWithText(
You can’t perform that action at this time.
0 commit comments