Skip to content

Commit 97c669e

Browse files
Added snapshot tests
1 parent c020efd commit 97c669e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

StreamChatSwiftUITests/Tests/ChatChannel/MessageView_Tests.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,18 @@ class MessageView_Tests: StreamChatTestCase {
323323
// Then
324324
assertSnapshot(matching: view, as: .image)
325325
}
326+
327+
func test_topLeftView_snapshot() {
328+
// Given
329+
let textView = Text("Test")
330+
331+
// Then
332+
let view = TopLeftView {
333+
textView
334+
}
335+
.applyDefaultSize()
336+
337+
// When
338+
assertSnapshot(matching: view, as: .image)
339+
}
326340
}
47.1 KB
Loading

0 commit comments

Comments
 (0)