Skip to content

Commit 7870963

Browse files
Added snapshot tests
1 parent 8213023 commit 7870963

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

StreamChatSwiftUITests/Tests/ChatChannel/ChatChannelView_Tests.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,17 @@ class ChatChannelView_Tests: StreamChatTestCase {
109109
// Then
110110
assertSnapshot(matching: view, as: .image)
111111
}
112+
113+
func test_defaultChannelHeader_snapshot() {
114+
// Given
115+
let modifier = DefaultChannelHeaderModifier(channel: .mockDMChannel(name: "Test"))
116+
let view = NavigationView {
117+
Text("Test")
118+
.modifier(modifier)
119+
}
120+
.applyDefaultSize()
121+
122+
// Then
123+
assertSnapshot(matching: view, as: .image)
124+
}
112125
}
Loading

0 commit comments

Comments
 (0)