Skip to content

Commit

Permalink
Bump test helpers version
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Oct 26, 2023
1 parent 38f9399 commit 1046372
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3229,7 +3229,7 @@
repositoryURL = "https://github.com/GetStream/stream-chat-swift-test-helpers.git";
requirement = {
kind = exactVersion;
version = 0.3.0;
version = 0.3.1;
};
};
8400A346282C06F90067D3A0 /* XCRemoteSwiftPackageReference "OHHTTPStubs" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import SnapshotTesting
@testable import StreamChat
@testable import StreamChatSwiftUI
@testable import StreamChatTestTools
@testable import StreamSwiftTestHelpers
import XCTest

final class ChatChannelListItemView_Tests: StreamChatTestCase {
Expand All @@ -26,7 +27,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {
.frame(width: defaultScreenSize.width)

// Then
assertSnapshot(matching: view, as: .image(perceptualPrecision: snapshotPrecision))
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
}

func test_channelListItem_imageMessage() throws {
Expand All @@ -45,7 +46,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {
.frame(width: defaultScreenSize.width)

// Then
assertSnapshot(matching: view, as: .image(perceptualPrecision: snapshotPrecision))
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
}

func test_channelListItem_videoMessage() throws {
Expand All @@ -64,7 +65,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {
.frame(width: defaultScreenSize.width)

// Then
assertSnapshot(matching: view, as: .image(perceptualPrecision: snapshotPrecision))
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
}

func test_channelListItem_fileMessage() throws {
Expand All @@ -83,7 +84,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {
.frame(width: defaultScreenSize.width)

// Then
assertSnapshot(matching: view, as: .image(perceptualPrecision: snapshotPrecision))
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
}

func test_channelListItem_giphyMessage() throws {
Expand All @@ -102,7 +103,7 @@ final class ChatChannelListItemView_Tests: StreamChatTestCase {
.frame(width: defaultScreenSize.width)

// Then
assertSnapshot(matching: view, as: .image(perceptualPrecision: snapshotPrecision))
assertSnapshot(matching: view, as: .image(perceptualPrecision: precision))
}

// MARK: - private
Expand Down
1 change: 0 additions & 1 deletion StreamChatSwiftUITests/Tests/StreamChatTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import XCTest
open class StreamChatTestCase: XCTestCase {

public static var currentUserId: String = .unique
public let snapshotPrecision: Float = 0.95

public var chatClient: ChatClient = {
let client = ChatClient.mock(isLocalStorageEnabled: false)
Expand Down

0 comments on commit 1046372

Please sign in to comment.