Skip to content

Commit 478364b

Browse files
More snapshots
1 parent 3954012 commit 478364b

File tree

79 files changed

+22
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+22
-22
lines changed

β€ŽSources/StreamChatSwiftUI/ChatChannel/ChannelInfo/ChatChannelInfoViewModel.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ import SwiftUI
383383

384384
let directMessageAction = ParticipantAction(
385385
title: L10n.Channel.Item.sendDirectMessage,
386-
iconName: "message.circle.fill",
386+
iconName: "message",
387387
action: {},
388388
confirmationPopup: nil,
389389
isDestructive: false

β€ŽStreamChatSwiftUITests/Tests/ChatChannel/ChannelInfo/ChatChannelInfoView_Tests.swiftβ€Ž

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import XCTest
3232
}.applyDefaultSize()
3333

3434
// Then
35-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
35+
AssertSnapshot(view)
3636
}
3737

3838
func test_chatChannelInfoView_directChannelOfflineSnapshot() {
@@ -52,7 +52,7 @@ import XCTest
5252
.applyDefaultSize()
5353

5454
// Then
55-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
55+
AssertSnapshot(view)
5656
}
5757

5858
func test_chatChannelInfoView_directChannelOnlineSnapshot() {
@@ -73,7 +73,7 @@ import XCTest
7373
.applyDefaultSize()
7474

7575
// Then
76-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
76+
AssertSnapshot(view)
7777
}
7878

7979
func test_chatChannelInfoView_directChannelMoreMembersSnapshot() {
@@ -93,7 +93,7 @@ import XCTest
9393
.applyDefaultSize()
9494

9595
// Then
96-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
96+
AssertSnapshot(view)
9797
}
9898

9999
func test_chatChannelInfoView_directChannelMutedSnapshot() {
@@ -114,7 +114,7 @@ import XCTest
114114
.applyDefaultSize()
115115

116116
// Then
117-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
117+
AssertSnapshot(view)
118118
}
119119

120120
func test_chatChannelInfoView_groupCollapsedSnapshot() {
@@ -137,7 +137,7 @@ import XCTest
137137
.applyDefaultSize()
138138

139139
// Then
140-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
140+
AssertSnapshot(view)
141141
}
142142

143143
func test_chatChannelInfoView_smallGroupSnapshot() {
@@ -160,7 +160,7 @@ import XCTest
160160
.applyDefaultSize()
161161

162162
// Then
163-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
163+
AssertSnapshot(view)
164164
}
165165

166166
func test_chatChannelInfoView_smallGroupDeactivatedSnapshot() {
@@ -184,7 +184,7 @@ import XCTest
184184
.applyDefaultSize()
185185

186186
// Then
187-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
187+
AssertSnapshot(view)
188188
}
189189

190190
func test_chatChannelInfoView_groupExpandedSnapshot() {
@@ -209,7 +209,7 @@ import XCTest
209209
.applyDefaultSize()
210210

211211
// Then
212-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
212+
AssertSnapshot(view)
213213
}
214214

215215
func test_chatChannelInfoView_groupCollapsedDeactivatedSnapshot() {
@@ -234,7 +234,7 @@ import XCTest
234234
.applyDefaultSize()
235235

236236
// Then
237-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
237+
AssertSnapshot(view)
238238
}
239239

240240
func test_chatChannelInfoView_groupCollapsedLargeDeactivatedSnapshot() {
@@ -259,7 +259,7 @@ import XCTest
259259
.applyDefaultSize()
260260

261261
// Then
262-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
262+
AssertSnapshot(view)
263263
}
264264

265265
func test_chatChannelInfoView_navBarSnapshot() {
@@ -313,7 +313,7 @@ import XCTest
313313
.applyDefaultSize()
314314

315315
// Then
316-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
316+
AssertSnapshot(view)
317317
}
318318

319319
func test_chatChannelInfoView_participantSelectedBasicActionsSnapshot() {
@@ -339,7 +339,7 @@ import XCTest
339339
.applyDefaultSize()
340340

341341
// Then
342-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
342+
AssertSnapshot(view)
343343
}
344344

345345
func test_chatChannelInfoView_participantSelectedWithMuteActionsSnapshot() {
@@ -367,7 +367,7 @@ import XCTest
367367
.applyDefaultSize()
368368

369369
// Then
370-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
370+
AssertSnapshot(view)
371371
}
372372

373373
func test_chatChannelInfoView_participantSelectedWithRemoveActionSnapshot() {
@@ -393,7 +393,7 @@ import XCTest
393393
.applyDefaultSize()
394394

395395
// Then
396-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
396+
AssertSnapshot(view)
397397
}
398398

399399
func test_chatChannelInfoView_participantSelectedOfflineUserSnapshot() {
@@ -419,7 +419,7 @@ import XCTest
419419
.applyDefaultSize()
420420

421421
// Then
422-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
422+
AssertSnapshot(view)
423423
}
424424

425425
func test_chatChannelInfoView_smallGroupWithLeaveButtonSnapshot() {
@@ -442,7 +442,7 @@ import XCTest
442442
.applyDefaultSize()
443443

444444
// Then
445-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
445+
AssertSnapshot(view)
446446
}
447447

448448
func test_chatChannelInfoView_currentUserRowTappableSnapshot() {
@@ -468,7 +468,7 @@ import XCTest
468468
.applyDefaultSize()
469469

470470
// Then - current user row is tappable and shows leave group action
471-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
471+
AssertSnapshot(view)
472472
}
473473

474474
func test_chatChannelInfoView_multiPersonDMSnapshot() {
@@ -489,6 +489,6 @@ import XCTest
489489
.applyDefaultSize()
490490

491491
// Then - shows group-style layout with member list, not single DM header
492-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
492+
AssertSnapshot(view)
493493
}
494494
}

β€ŽStreamChatSwiftUITests/Tests/ChatChannel/ChannelInfo/MemberListView_Tests.swiftβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import XCTest
3232
.applyDefaultSize()
3333

3434
// Then
35-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
35+
AssertSnapshot(view)
3636
}
3737

3838
func test_memberListView_withoutAddButtonSnapshot() {
@@ -56,6 +56,6 @@ import XCTest
5656
.applyDefaultSize()
5757

5858
// Then
59-
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
59+
AssertSnapshot(view)
6060
}
6161
}

0 commit comments

Comments
Β (0)