From 4b4fc6252cec5c3245fb9f4d0574eb977389d2b1 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Wed, 15 Jan 2025 12:07:17 +0000 Subject: [PATCH] Fix flaky test --- .../chat/android/compose/robots/UserRobotMessageListAsserts.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/stream-chat-android-compose-sample/src/androidTestE2eDebug/kotlin/io/getstream/chat/android/compose/robots/UserRobotMessageListAsserts.kt b/stream-chat-android-compose-sample/src/androidTestE2eDebug/kotlin/io/getstream/chat/android/compose/robots/UserRobotMessageListAsserts.kt index df709369fd6..a466de60aa0 100644 --- a/stream-chat-android-compose-sample/src/androidTestE2eDebug/kotlin/io/getstream/chat/android/compose/robots/UserRobotMessageListAsserts.kt +++ b/stream-chat-android-compose-sample/src/androidTestE2eDebug/kotlin/io/getstream/chat/android/compose/robots/UserRobotMessageListAsserts.kt @@ -131,6 +131,7 @@ fun UserRobot.assertComposerSize(isChangeable: Boolean): UserRobot { } else { val text = "1\n2\n3\n4\n5\n6" typeText(text) + sleep(500) initialComposerHeight = composer.findObject().height typeText("${text}\n7") assertEquals(initialComposerHeight, composer.findObject().height)