@@ -115,8 +115,7 @@ class FormTextFieldTests {
115
115
val label = composeTestRule.onNodeWithContentDescription(labelSemanticLabel)
116
116
label.assertIsDisplayed()
117
117
118
- val supportingText = composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true )
119
- supportingText.assertExists()
118
+ composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true ).assertDoesNotExist()
120
119
}
121
120
122
121
/* *
@@ -134,9 +133,7 @@ class FormTextFieldTests {
134
133
val label = composeTestRule.onNodeWithContentDescription(labelSemanticLabel)
135
134
label.assertIsDisplayed()
136
135
137
- val supportingText = composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true )
138
- supportingText.assertExists()
139
- assertEquals(field.description, supportingText.getTextString())
136
+ composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true ).assertDoesNotExist()
140
137
}
141
138
142
139
/* *
@@ -155,9 +152,7 @@ class FormTextFieldTests {
155
152
val label = composeTestRule.onNodeWithContentDescription(labelSemanticLabel)
156
153
label.assertIsDisplayed()
157
154
158
- val supportingText = composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true )
159
- supportingText.assertExists()
160
- assertEquals(field.description, supportingText.getTextString())
155
+ composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true ).assertDoesNotExist()
161
156
162
157
val charCountNode =
163
158
composeTestRule.onNode(hasContentDescription(charCountSemanticLabel), useUnmergedTree = true )
@@ -185,9 +180,7 @@ class FormTextFieldTests {
185
180
val label = composeTestRule.onNodeWithContentDescription(labelSemanticLabel)
186
181
label.assertIsDisplayed()
187
182
188
- val supportingText = composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true )
189
- supportingText.assertExists()
190
- assertEquals(field.description, supportingText.getTextString())
183
+ composeTestRule.onNode(hasContentDescription(supportingTextSemanticLabel), useUnmergedTree = true ).assertDoesNotExist()
191
184
192
185
outlinedTextField.performImeAction()
193
186
outlinedTextField.assertIsNotFocused()
0 commit comments