Skip to content

Commit 821ff7f

Browse files
committed
Move unread separator off-screen in pill snapshot fixture
The fixture put the separator at index 0 of messageItems, which with reverseLayout = true sits at the bottom of the viewport. The pill hides itself while the separator is visible, so the snapshot did not exercise the pill. Place the separator at the end of the list so it stays above the visible area.
1 parent 80769a2 commit 821ff7f

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

stream-chat-android-compose/src/test/kotlin/io/getstream/chat/android/compose/ui/messages/MessageListTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private val TwoMessagesListState = MessageListState(
260260
)
261261

262262
private val UnreadLabelMessageListState = LoadedMessageListState.copy(
263-
messageItems = listOf(UnreadSeparatorItemState(unreadCount = 9)) + LoadedMessageListState.messageItems,
263+
messageItems = LoadedMessageListState.messageItems + UnreadSeparatorItemState(unreadCount = 9),
264264
unreadLabel = MessageListController.UnreadLabel(
265265
unreadCount = 9,
266266
lastReadMessageId = PreviewMessageData.message1.id,
Loading

0 commit comments

Comments
 (0)