File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed
Sources/StreamChatSwiftUI/ChatChannel/MessageList
StreamChatSwiftUITestsAppTests Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -405,9 +405,9 @@ struct TypingIndicatorBottomView: View {
405
405
Color ( colors. background)
406
406
. opacity ( 0.9 )
407
407
)
408
+ . accessibilityIdentifier ( " TypingIndicatorBottomView " )
408
409
}
409
410
. accessibilityElement ( children: . contain)
410
- . accessibilityIdentifier ( " TypingIndicatorBottomView " )
411
411
}
412
412
}
413
413
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class MessageListPage {
28
28
}
29
29
30
30
static var typingIndicator : XCUIElement {
31
- app. otherElements [ " TypingIndicatorBottomView " ] . staticTexts . firstMatch
31
+ app. staticTexts [ " TypingIndicatorBottomView " ] . firstMatch
32
32
}
33
33
34
34
static var scrollToBottomButton : XCUIElement {
Original file line number Diff line number Diff line change @@ -203,11 +203,7 @@ final class MessageList_Tests: StreamTestCase {
203
203
func test_typingIndicator( ) throws {
204
204
linkToScenario ( withId: 358 )
205
205
206
- throw XCTSkip ( " Check out SWUI-251 " )
207
-
208
- let isIpad = UIDevice . current. userInterfaceIdiom == . pad
209
- let typingIndicatorTimeout = isIpad ? 10 : XCUIElement . waitTimeout
210
- let typingEventsTimeout : Double = 3
206
+ let typingEventsTimeout : Double = 4
211
207
212
208
GIVEN ( " user opens the channel " ) {
213
209
userRobot. login ( ) . openChannel ( )
@@ -217,16 +213,13 @@ final class MessageList_Tests: StreamTestCase {
217
213
}
218
214
THEN ( " user observes typing indicator is shown " ) {
219
215
let typingUserName = UserDetails . userName ( for: participantRobot. currentUserId)
220
- userRobot. assertTypingIndicatorShown (
221
- typingUserName: typingUserName,
222
- waitTimeout: typingIndicatorTimeout
223
- )
216
+ userRobot. assertTypingIndicatorShown ( typingUserName: typingUserName)
224
217
}
225
218
WHEN ( " participant stops typing " ) {
226
219
participantRobot. wait ( typingEventsTimeout) . stopTyping ( )
227
220
}
228
221
THEN ( " user observes typing indicator has disappeared " ) {
229
- userRobot. assertTypingIndicatorHidden ( waitTimeout : typingIndicatorTimeout )
222
+ userRobot. assertTypingIndicatorHidden ( )
230
223
}
231
224
}
232
225
You can’t perform that action at this time.
0 commit comments