Skip to content

Commit 8a1a9a1

Browse files
committed
Avoid timing out before trimming the preview text
1 parent e37d87a commit 8a1a9a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

stream-chat-android-compose-sample/src/androidTestE2eDebug/kotlin/io/getstream/chat/android/compose/robots/UserRobotChannelListAsserts.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ fun UserRobot.assertMessageInChannelPreview(text: String, fromCurrentUser: Boole
3737
false -> "${ParticipantRobot.name}: $text"
3838
null -> text
3939
}
40-
assertEquals(expectedPreview, Channel.messagePreview.waitForText(expectedPreview).trimEnd())
40+
assertEquals(
41+
expectedPreview,
42+
Channel.messagePreview.waitForText(expectedPreview, mustBeEqual = false).trimEnd(),
43+
)
4144
return this
4245
}
4346

0 commit comments

Comments
 (0)