-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quoted message preview did not update when the quoted message was deleted #3553
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ env: | |
jobs: | ||
build-test-app-and-frameworks: | ||
name: Build Test App and Frameworks | ||
runs-on: macos-14 | ||
runs-on: macos-15 | ||
if: ${{ github.event_name != 'push' }} | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -35,8 +35,6 @@ jobs: | |
- name: Build | ||
run: bundle exec fastlane build_test_app_and_frameworks | ||
timeout-minutes: 60 | ||
env: | ||
XCODE_VERSION: "15.0.1" # Should match the minimum version in dependent jobs | ||
- uses: actions/upload-artifact@v4 | ||
if: success() | ||
with: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,19 @@ final class QuotedChatMessageView_Tests: XCTestCase { | |
|
||
AssertSnapshot(view) | ||
} | ||
|
||
func test_withDeletedMessage() { | ||
let message = ChatMessage.mock( | ||
id: .unique, | ||
cid: .unique, | ||
text: "Hello Vader!", | ||
author: .mock(id: .unique), | ||
deletedAt: .unique, | ||
isSentByCurrentUser: true | ||
) | ||
view.content = QuotedChatMessageView.Content(message: message, avatarAlignment: .leading) | ||
AssertSnapshot(view) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure how to force the snapshot test to capture the grey text color. This works OK in the demo app, but snapshot test uses whatever |
||
} | ||
|
||
func test_withImageAttachmentAppearance() { | ||
let attachment = ChatMessageImageAttachment.mock( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
textContent
internally checks for the deleted state