Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/cron-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ jobs:
name: Test Data E2E (iOS ${{ matrix.ios }})
path: |
fastlane/recordings
fastlane/sinatra_log.txt
fastlane/test_output/report.junit
fastlane/stream-chat-test-mock-server/logs/*
fastlane/test_output/logs/*/Diagnostics/**/*.txt
fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/smoke-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ jobs:
with:
name: Test Data UI
path: |
fastlane/recordings
fastlane/sinatra_log.txt
fastlane/test_output/snapshots
fastlane/test_output/logs/*/Diagnostics/**/*.txt
fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*
Expand Down Expand Up @@ -199,8 +197,7 @@ jobs:
name: Test Data E2E ${{ matrix.batch }}
path: |
fastlane/recordings
fastlane/sinatra_log.txt
fastlane/test_output/report.junit
fastlane/stream-chat-test-mock-server/logs/*
fastlane/test_output/logs/*/Diagnostics/**/*.txt
fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ app-thinning.plist
*.dmg
yeetd-normal.pkg
*LinkMap.txt
stream-chat-test-mock-server

# VSCode
.vscode
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ group :fastlane_dependencies do
end

group :sinatra_dependencies do
gem 'eventmachine'
gem 'faye-websocket'
gem 'puma'
gem 'rackup'
end
Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ GEM
dotenv (2.8.1)
drb (2.2.3)
emoji_regex (3.2.3)
eventmachine (1.2.7)
excon (0.112.0)
faraday (1.10.4)
faraday-em_http (~> 1.0)
Expand Down Expand Up @@ -172,6 +173,9 @@ GEM
xcsize (= 1.2.0)
fastlane-sirp (1.0.0)
sysrandom (~> 1.0)
faye-websocket (0.12.0)
eventmachine (>= 0.12.0)
websocket-driver (>= 0.8.0)
gh_inspector (1.1.3)
git (2.3.3)
activesupport (>= 5.0)
Expand Down Expand Up @@ -352,6 +356,10 @@ GEM
concurrent-ruby (~> 1.0)
uber (0.1.0)
unicode-display_width (2.6.0)
websocket-driver (0.8.0)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
word_wrap (1.0.0)
xcodeproj (1.27.0)
CFPropertyList (>= 2.3.3, < 4.0)
Expand All @@ -374,13 +382,15 @@ PLATFORMS
DEPENDENCIES
danger
danger-commit_lint
eventmachine
fastlane
fastlane-plugin-create_xcframework
fastlane-plugin-lizard
fastlane-plugin-sonarcloud_metric_kit
fastlane-plugin-stream_actions (= 0.3.101)
fastlane-plugin-versioning
fastlane-plugin-xcsize (= 1.2.0)
faye-websocket
json
lefthook
plist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ public struct QuotedMessageContentView<Factory: ViewFactory>: View {
}
.onDisappear(.cancel)
.processors([ImageProcessors.Resize(width: options.attachmentSize.width)])
.priority(.high) }
.priority(.high)
}
}
.frame(width: hasVoiceAttachments ? nil : options.attachmentSize.width, height: options.attachmentSize.height)
.aspectRatio(1, contentMode: .fill)
Expand Down
14 changes: 7 additions & 7 deletions Sources/StreamChatSwiftUI/ViewFactory/DefaultViewFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -835,13 +835,13 @@ extension ViewFactory {
}

public func makeQuotedMessageContentView(
options: QuotedMessageContentViewOptions
) -> some View {
QuotedMessageContentView(
factory: self,
options: options
)
}
options: QuotedMessageContentViewOptions
) -> some View {
QuotedMessageContentView(
factory: self,
options: options
)
}

public func makeCustomAttachmentQuotedView(options: CustomAttachmentQuotedViewOptions) -> some View {
EmptyView()
Expand Down
8 changes: 2 additions & 6 deletions StreamChatSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
820A61A029D6D78E002257FB /* QuotedReply_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 820A619F29D6D78E002257FB /* QuotedReply_Tests.swift */; };
825AADF4283CCDB000237498 /* ThreadPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 825AADF3283CCDB000237498 /* ThreadPage.swift */; };
827352FD290BE91100A87385 /* NotificationsHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8492974827ABDDBF00A8EEB0 /* NotificationsHandler.swift */; };
829AB4D228578ACF002DC629 /* StreamTestCase+Tags.swift in Sources */ = {isa = PBXBuildFile; fileRef = 829AB4D128578ACF002DC629 /* StreamTestCase+Tags.swift */; };
829AB4D42858A532002DC629 /* Reactions_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 829AB4D32858A532002DC629 /* Reactions_Tests.swift */; };
829CD5CE2848CA6B003C3877 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 829CD5CD2848CA6B003C3877 /* Settings.swift */; };
829EF8772A9362C00045D166 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 829EF8762A9362C00045D166 /* PrivacyInfo.xcprivacy */; };
Expand Down Expand Up @@ -697,7 +696,6 @@
4FEAB3172BFF71F70057E511 /* SwiftUI+UIAlertController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftUI+UIAlertController.swift"; sourceTree = "<group>"; };
820A619F29D6D78E002257FB /* QuotedReply_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuotedReply_Tests.swift; sourceTree = "<group>"; };
825AADF3283CCDB000237498 /* ThreadPage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreadPage.swift; sourceTree = "<group>"; };
829AB4D128578ACF002DC629 /* StreamTestCase+Tags.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "StreamTestCase+Tags.swift"; sourceTree = "<group>"; };
829AB4D32858A532002DC629 /* Reactions_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Reactions_Tests.swift; sourceTree = "<group>"; };
829CD5CD2848CA6B003C3877 /* Settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = "<group>"; };
829EF8762A9362C00045D166 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2240,13 +2238,12 @@
isa = PBXGroup;
children = (
A3600B3F283F651200E1C930 /* Base TestCase */,
82A1814528FD69E8005F9D43 /* Message Delivery Status */,
82A1813D28FD68A3005F9D43 /* ChannelList_Tests.swift */,
A3600B31283E9E4700E1C930 /* MessageList_Tests.swift */,
829AB4D32858A532002DC629 /* Reactions_Tests.swift */,
82A1813B28F9BA53005F9D43 /* Attachments_Tests.swift */,
82A1814328FD69AE005F9D43 /* SlowMode_Tests.swift */,
829AB4D128578ACF002DC629 /* StreamTestCase+Tags.swift */,
82A1814528FD69E8005F9D43 /* Message Delivery Status */,
82A1813F28FD691B005F9D43 /* Ephemeral_Messages_Tests.swift */,
82A1814128FD694A005F9D43 /* PushNotification_Tests.swift */,
820A619F29D6D78E002257FB /* QuotedReply_Tests.swift */,
Expand Down Expand Up @@ -2587,7 +2584,6 @@
82A1814728FD69F8005F9D43 /* MessageDeliveryStatus_Tests.swift in Sources */,
A3600B2F283E9E1900E1C930 /* UserRobot+Asserts.swift in Sources */,
82A1814028FD691B005F9D43 /* Ephemeral_Messages_Tests.swift in Sources */,
829AB4D228578ACF002DC629 /* StreamTestCase+Tags.swift in Sources */,
82A1813C28F9BA53005F9D43 /* Attachments_Tests.swift in Sources */,
A3600B35283E9EBA00E1C930 /* Bundle+Target.swift in Sources */,
82A1813A28F84CAA005F9D43 /* SpringBoard.swift in Sources */,
Expand Down Expand Up @@ -3875,7 +3871,7 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
requirement = {
branch = v5;
branch = "ci/v5-mock-server";
kind = branch;
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ enum ChannelListPage {
cell.staticTexts["UnreadIndicatorView"]
}

static func statusCheckmark(for status: MessageDeliveryStatus?, in cell: XCUIElement) -> XCUIElement {
static func statusCheckmark(
for status: StreamChatTestMockServer.MessageDeliveryStatus?,
in cell: XCUIElement
) -> XCUIElement {
return cell.images["readIndicatorCheckmark"]
}
}
Expand Down
9 changes: 6 additions & 3 deletions StreamChatSwiftUITestsAppTests/Pages/MessageListPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class MessageListPage {
}

static func threadReplyCountButton(in messageCell: XCUIElement) -> XCUIElement {
messageCell.buttons["MessageAvatarViewPlaceholder"]
app.buttons.matching(NSPredicate(format: "identifier LIKE 'MessageAvatarView' or identifier LIKE 'MessageAvatarViewPlaceholder'")).firstMatch
}

static func reactions(in messageCell: XCUIElement) -> XCUIElementQuery {
Expand Down Expand Up @@ -167,7 +167,10 @@ class MessageListPage {
}

// FIXME:
static func statusCheckmark(for status: MessageDeliveryStatus? = nil, in messageCell: XCUIElement) -> XCUIElement {
static func statusCheckmark(
for status: StreamChatTestMockServer.MessageDeliveryStatus? = nil,
in messageCell: XCUIElement
) -> XCUIElement {
messageCell.images["readIndicatorCheckmark"]
}

Expand Down Expand Up @@ -225,7 +228,7 @@ class MessageListPage {
}

static func files(in messageCell: XCUIElement) -> XCUIElementQuery {
messageCell.buttons.matching(NSPredicate(format: "identifier LIKE 'FileAttachmentsContainer'"))
messageCell.buttons.matching(NSPredicate(format: "identifier LIKE 'FileAttachmentsContainer'")).images
}

static func videoPlayer() -> XCUIElement {
Expand Down
6 changes: 6 additions & 0 deletions StreamChatSwiftUITestsAppTests/Pages/SpringBoard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ enum SpringBoard {
static var testAppIcon: XCUIElement {
app.icons["Chat UI Tests"]
}

static var photoAccessPopUp: XCUIElement {
app.buttons
.matching(NSPredicate(format: "label LIKE 'Allow Full Access'"))
.firstMatch
}
}
1 change: 1 addition & 0 deletions StreamChatSwiftUITestsAppTests/Pages/ThreadPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import XCTest

class ThreadPage: MessageListPage {
static var alsoSendInChannelCheckbox: XCUIElement { app.buttons["SendInChannelView"] }
static var repliesCountLabel: XCUIElement { app.staticTexts["textLabel"] }
}
Loading
Loading