mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Fix UI tests
This commit is contained in:
committed by
Stefan Ceriu
parent
730ada69a0
commit
98de77679b
@@ -37,11 +37,6 @@ struct RoomHeaderView: View {
|
||||
ZStack(alignment: .bottomTrailing) {
|
||||
roomAvatarImage
|
||||
.clipShape(Circle())
|
||||
|
||||
if let encryptionBadge = context.viewState.roomEncryptionBadge {
|
||||
Image(uiImage: encryptionBadge)
|
||||
.accessibilityIdentifier("encryptionBadgeIcon")
|
||||
}
|
||||
}
|
||||
.frame(width: AvatarSize.room(on: .timeline).value, height: AvatarSize.room(on: .timeline).value)
|
||||
}
|
||||
@@ -87,8 +82,7 @@ struct RoomHeaderView_Previews: PreviewProvider {
|
||||
timelineViewFactory: RoomTimelineViewFactory(),
|
||||
mediaProvider: MockMediaProvider(),
|
||||
roomName: "Some Room name",
|
||||
roomAvatarUrl: nil,
|
||||
roomEncryptionBadge: Asset.Images.encryptionTrusted.image)
|
||||
roomAvatarUrl: nil)
|
||||
|
||||
RoomHeaderView(context: viewModel.context)
|
||||
.previewLayout(.sizeThatFits)
|
||||
|
||||
Reference in New Issue
Block a user