Skip to content

Commit

Permalink
Fix flakey room member details screen snapshot test
Browse files Browse the repository at this point in the history
- needs to wait for the call button to appear i.e. dmRoomID
  • Loading branch information
stefanceriu committed Feb 3, 2025
1 parent d7ac9e9 commit 9df5a8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct RoomMemberDetailsScreen_Previews: PreviewProvider, TestablePreview {

RoomMemberDetailsScreen(context: otherUserViewModel.context)
.snapshotPreferences(expect: otherUserViewModel.context.$viewState.map { state in
state.memberDetails?.role == .user
state.memberDetails?.role == .user && state.dmRoomID != nil
})
.previewDisplayName("Other User")

Expand Down

0 comments on commit 9df5a8f

Please sign in to comment.